Skip to content

Commit

Permalink
Fix global bot init
Browse files Browse the repository at this point in the history
  • Loading branch information
resterle committed Jun 29, 2024
1 parent 5831d4e commit 049ba6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ func main() {
log.Fatalf("%s needs to be set", discordTokenName)
}

bot, err := discord.InitBot(token)
var err error
bot, err = discord.InitBot(token)
if err != nil {
log.Fatalf("Error while creating bot. %s", err)
}
Expand Down

0 comments on commit 049ba6f

Please sign in to comment.