This commit is contained in:
cdle 2021-08-20 11:03:07 +08:00
parent 319da3d0ce
commit 140b30d61e
2 changed files with 8 additions and 2 deletions

View File

@ -35,7 +35,8 @@ type Yaml struct {
Npm string
Python string
Pip string
NoAdmin bool `yaml:"no_admin"`
NoAdmin bool `yaml:"no_admin"`
QbotConfigFile string `yaml:"qbot_config_file"`
}
var Balance = "balance"

View File

@ -117,7 +117,12 @@ func Main() {
// config.DefaultConfigFile = models.ExecPath + "/qbot"
// conf = config.Get()
conf = &config.Config{}
if models.Config.QbotConfigFile != "" {
config.DefaultConfigFile = models.Config.QbotConfigFile
conf = config.Get()
} else {
conf = &config.Config{}
}
// if *debug {
// conf.Output.Debug = true
// }