1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-11-22 21:35:44 -05:00

send message when user leaves too

This commit is contained in:
stryan 2021-01-03 20:52:30 -05:00
parent b782efdf04
commit 41e864a0f3

View File

@ -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
}
}