|
|
@ -20,7 +20,8 @@ func StartBot(token string, kill chan bool) {
|
|
|
|
dg.AddHandler(ProcessVoiceStateUpdate)
|
|
|
|
dg.AddHandler(ProcessVoiceStateUpdate)
|
|
|
|
dg.AddHandler(modules.CheckForReact)
|
|
|
|
dg.AddHandler(modules.CheckForReact)
|
|
|
|
dg.AddHandler(modules.CheckForVote)
|
|
|
|
dg.AddHandler(modules.CheckForVote)
|
|
|
|
dg.StateEnabled = true
|
|
|
|
dg.State.TrackMembers = true
|
|
|
|
|
|
|
|
dg.State.TrackVoice = true
|
|
|
|
|
|
|
|
|
|
|
|
if err := dg.Open(); err != nil {
|
|
|
|
if err := dg.Open(); err != nil {
|
|
|
|
panic(err)
|
|
|
|
panic(err)
|
|
|
|