From 907cfeb6862b086898dea1cb15bd5810b32a1666 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 6 Mar 2025 08:59:13 +0100 Subject: [PATCH] God channel --- discord/teammakerv2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord/teammakerv2.py b/discord/teammakerv2.py index f17464e..85dadf6 100644 --- a/discord/teammakerv2.py +++ b/discord/teammakerv2.py @@ -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}**")