1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-12 01:52:49 +00:00

fix voice listener - add voice state handler

This commit is contained in:
2021-02-11 20:17:31 -06:00
parent e573d6da44
commit 4aeeb3ef14
5 changed files with 135 additions and 73 deletions

View File

@@ -39,6 +39,7 @@ func Start(token string) *discordgo.Session {
// add bot handlers
_session.AddHandler(bothandlers.SoundsHandler)
_session.AddHandler(bothandlers.VoiceStateHandler)
_session.AddHandler(bothandlers.LoggerHandler)
_session.AddHandler(func(_s *discordgo.Session, m *discordgo.MessageCreate) {
if m.Content == config.Config.BotPrefix+"restart" {