go: Register voice state update listener

Luther Wen Xu 2019-10-15 23:29:23 +07:00
parent b7625cd6ac
commit d1311d057f
Signed by untrusted user: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 1 additions and 0 deletions

@ -17,6 +17,7 @@ func StartBot(token string, kill chan bool) {
} }
dg.AddHandler(ProcessCommand) dg.AddHandler(ProcessCommand)
dg.AddHandler(ProcessVoiceStateUpdate)
dg.AddHandler(modules.CheckForReact) dg.AddHandler(modules.CheckForReact)
dg.AddHandler(modules.CheckForVote) dg.AddHandler(modules.CheckForVote)
dg.StateEnabled = true dg.StateEnabled = true