From e3ef237112cca38493dc8cb1926fcc856b285c38 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 29 Oct 2020 14:10:00 -0400 Subject: [PATCH] Show reboot token --- main.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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)