From 41e864a0f3e2c2a409cf50893d15c1e804869940 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 3 Jan 2021 20:52:30 -0500 Subject: [PATCH] send message when user leaves too --- handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers.go b/handlers.go index f926a59..e304daf 100644 --- a/handlers.go +++ b/handlers.go @@ -178,6 +178,7 @@ func voiceUpdate(s *discordgo.Session, event *discordgo.VoiceStateUpdate) { } delete(Bridge.DiscordUsers, u.Username) log.Println("user left watched discord channel") + Bridge.CurrentChannel.Send(fmt.Sprintf("%v has left Discord channel\n", u.Username), false) Bridge.DiscordUserCount = count } }