From 31a72b727e8bc53619108e11347ffd249c873f82 Mon Sep 17 00:00:00 2001 From: deflax Date: Wed, 23 Mar 2022 22:18:31 -0400 Subject: [PATCH] show user connecting on the visible voice channels --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 0647e46..e804f73 100644 --- a/main.py +++ b/main.py @@ -56,8 +56,8 @@ async def on_message(message): @bot.event async def on_voice_state_update(member, before, after): - print("User connected to " + str(after.channel.id)) - if after.channel.id == [voice_channel_id]: + print("User noticed on " + str(after.channel.id)) + if str(after.channel.id) == voice_channel_id: clients_before = len(before.channel.members) # If nobody in the channel based on before, invoke join the channel