Fixed args parsing #9

Merged
JonasFranzDEV merged 1 commits from kolaente/mensabot:fix/args-parsing into master 6 years ago
  1. 4
      bot.go

@ -36,8 +36,8 @@ func main() {
return
}
if len(os.Args) > 0 {
token = os.Args[0]
if len(os.Args) > 1 {
token = os.Args[1]
}
dg, err := discordgo.New(fmt.Sprintf("Bot %s", token))

Loading…
Cancel
Save