Add a command router

This will only required one handler for all of the commands
This commit is contained in:
2022-09-05 16:55:07 -05:00
parent a1d612abc0
commit 0345b1cba1
2 changed files with 89 additions and 0 deletions

View File

@ -55,6 +55,8 @@ func main() {
dg.AddHandler(h.Handle)
}
dg.AddHandler(bot.NewCommandHandler(C))
dg.Identify.Intents = discordgo.IntentsGuildMessages | discordgo.IntentsDirectMessages
err = dg.Open()