added config formatting and test code

This commit is contained in:
Ryan O'Hara-Reid
2017-07-25 12:35:12 +10:00
committed by Adrian Gallagher
parent 06786ed9de
commit 4e6885410c
10 changed files with 303 additions and 85 deletions

View File

@@ -88,7 +88,7 @@ func setupBotExchanges() {
func main() {
HandleInterrupt()
bot.config = &config.Cfg
log.Printf("Loading config file %s..\n", config.CONFIG_FILE)
log.Printf("Loading config file %s..\n", config.ConfigFile)
err := bot.config.LoadConfig("")
if err != nil {