diff --git a/bot/bot.go b/bot/bot.go index 35b8eb5..b19b52f 100644 --- a/bot/bot.go +++ b/bot/bot.go @@ -97,8 +97,7 @@ func Run() error { dg.Identify.Intents = discordgo.IntentsGuildMessages | discordgo.IntentsDirectMessages - err = dg.Open() - if err != nil { + if err = dg.Open(); err != nil { log.Fatalf("error opening connection: %v\n", err) }