diff --git a/main.go b/main.go index 464edcc..cf88b2f 100644 --- a/main.go +++ b/main.go @@ -28,8 +28,8 @@ var ( } log = loggy.NewLogger(logOpts) startupTime time.Time - setupToken = "!setup " - rebootToken = "!reboot " + setupToken = fmt.Sprintf("!setup %+v", rand.Intn(9999)+1000) + rebootToken = fmt.Sprintf("!reboot %+v", rand.Intn(9999)+1000) bump = true config Config lastActiveChan string @@ -58,13 +58,11 @@ func main() { defer log.PanicSafe() if configFile == "" { configFile = "config.json" - setupToken = fmt.Sprintf("!setup %+v", rand.Intn(9999)+1000) - rebootToken = fmt.Sprintf("!reboot %+v", rand.Intn(9999)+1000) log.LogCritical(fmt.Sprintf("SetupToken: %+v\nRebootToken: %+v", setupToken, rebootToken)) } else { loadConfig() } - + log.LogCritical(fmt.Sprintf("SetupToken: %+v\nRebootToken: %+v", setupToken, rebootToken)) dg, err := discordgo.New("Bot " + token) if err != nil { log.LogErrorType(err)