Merge pull request #194 from OpzekerIT/dev

God channel
This commit is contained in:
Lanta 2025-03-06 08:59:46 +01:00 committed by GitHub
commit 6bffa2fdb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -194,7 +194,9 @@ async def on_voice_state_update(member, before, after):
if not logging_channel:
return
if (before.channel and before.channel.name == "GOD_CHANNEL") or (after.channel and after.channel.name == "GOD_CHANNEL"):
return # Als het God_channel is, doe niks
if before.channel is None and after.channel is not None:
# Lid joint een voice channel
await logging_channel.send(f"🔊 {member.name} is gejoined in voice kanaal: **{after.channel.name}**")