|
|
@ -20,6 +20,7 @@ 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.AddHandler(backend.UpdateVoiceChannelState)
|
|
|
|
dg.State.TrackMembers = true
|
|
|
|
dg.State.TrackMembers = true
|
|
|
|
dg.State.TrackVoice = true
|
|
|
|
dg.State.TrackVoice = true
|
|
|
|
|
|
|
|
|
|
|
@ -30,7 +31,6 @@ func StartBot(token string, kill chan bool) {
|
|
|
|
fmt.Println("Bot is now running. Press CTRL-C to exit.")
|
|
|
|
fmt.Println("Bot is now running. Press CTRL-C to exit.")
|
|
|
|
modules.GenerateHelpEmbed()
|
|
|
|
modules.GenerateHelpEmbed()
|
|
|
|
go modules.ListenToVoteFinishes(dg)
|
|
|
|
go modules.ListenToVoteFinishes(dg)
|
|
|
|
go backend.UpdateVoiceChannelState(dg)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<-kill
|
|
|
|
<-kill
|
|
|
|
|
|
|
|
|
|
|
|