From 79f305cec1381530ce98a99b6b2a33bceb95faeb Mon Sep 17 00:00:00 2001 From: Tyler Stiene Date: Tue, 19 Jan 2021 01:19:45 -0500 Subject: [PATCH] mumble-bot exclude self from user map --- discord-handlers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord-handlers.go b/discord-handlers.go index f56fe75..cff766a 100644 --- a/discord-handlers.go +++ b/discord-handlers.go @@ -35,6 +35,10 @@ func (l *DiscordListener) ready(s *discordgo.Session, event *discordgo.Ready) { for _, vs := range g.VoiceStates { if vs.ChannelID == l.Bridge.BridgeConfig.CID { + if s.State.User.ID == vs.UserID { + // Ignore bot + continue + } u, err := s.User(vs.UserID) if err != nil {