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:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user