x
This commit is contained in:
parent
319da3d0ce
commit
140b30d61e
@ -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"
|
||||
|
||||
@ -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
|
||||
// }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user