1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

isFastStart setting appiled to config.hjson gen

This commit is contained in:
sam01101 2021-01-29 15:13:39 +08:00 committed by GitHub
parent 81ff71ee3b
commit ccee8ac77a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,9 @@ func main() {
if conf.Uin == 0 || (conf.Password == "" && conf.PasswordEncrypted == "") {
log.Warnf("请修改 config.hjson 以添加账号密码.")
time.Sleep(time.Second * 5)
if (!isFastStart) {
time.Sleep(time.Second * 5)
}
return
}
@ -467,7 +469,9 @@ func getConfig() *global.JSONConfig {
return nil
}
log.Infof("默认配置文件已生成, 请编辑 config.hjson 后重启程序.")
time.Sleep(time.Second * 5)
if (!isFastStart) {
time.Sleep(time.Second * 5)
}
return nil
}
return conf