Change where config is saved

This commit is contained in:
2020-10-30 12:55:16 -04:00
parent 5b87338a9f
commit d423f9c8b3
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,6 @@ import (
func chessCommand(m chat1.MsgSummary) {
defer log.PanicSafe()
defer saveConfig()
convID := string(m.ConvID)
parts := strings.Split(m.Content.Text.Body, " ")
if g, ok := config.Games[convID]; ok {

View File

@ -26,6 +26,7 @@ var (
func printChat(m chat1.MsgSummary) {
defer log.PanicSafe()
defer saveConfig()
if m.Sender.Username == k.Username {
return
}
@ -40,7 +41,7 @@ func main() {
loadConfig()
fmt.Println("Starting log")
log = loggy.NewLogger(config.LogOpts)
fmt.Println("Log configured?")
fmt.Println("Log configured")
defer log.PanicSafe()
log.LogInfo("Logger configured")
chat := printChat