From dd672053f11c45f5d015e8680f718e05591f71b2 Mon Sep 17 00:00:00 2001 From: deflax Date: Mon, 28 Mar 2022 11:15:12 -0400 Subject: [PATCH] fine tune connect condition --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 79219a3..c46ae9a 100644 --- a/main.py +++ b/main.py @@ -104,7 +104,7 @@ async def on_voice_state_update(member, before, after): #await debug_channel.send('] voice #' + voice_channel_id + ' member count: ' + str(member_ids)) - if member_ids > 1 and isConnected == False: + if member_ids > 0 and isConnected == False: isConnected = True await debug_channel.send('] connecting to #' + voice_channel_id) voice_client = await voice_channel.connect()