Config: Add missing params

This commit is contained in:
Adrian Gallagher
2017-04-11 22:50:27 +10:00
parent c425d7dba4
commit 6daba21982
2 changed files with 4 additions and 4 deletions

View File

@@ -35,11 +35,11 @@ func SaveAllSettings(w http.ResponseWriter, r *http.Request) {
}
}
//Reload the configuration
err := bot.config.SaveConfig()
err := bot.config.SaveConfig("")
if err != nil {
panic(err)
}
err = bot.config.LoadConfig()
err = bot.config.LoadConfig("")
if err != nil {
panic(err)
}

View File

@@ -89,7 +89,7 @@ func main() {
bot.config = &config.Cfg
log.Printf("Loading config file %s..\n", config.CONFIG_FILE)
err := bot.config.LoadConfig()
err := bot.config.LoadConfig("")
if err != nil {
log.Fatal(err)
}
@@ -208,7 +208,7 @@ func HandleInterrupt() {
func Shutdown() {
log.Println("Bot shutting down..")
bot.config.Portfolio = portfolio.Portfolio
err := bot.config.SaveConfig()
err := bot.config.SaveConfig("")
if err != nil {
log.Println("Unable to save config.")