From 26a2d07714bed3a9442087705e4da511fbd2e41c Mon Sep 17 00:00:00 2001 From: Lukas Blacha Date: Wed, 8 Feb 2023 18:31:04 +0100 Subject: [PATCH] Added auto-disconnect feature --- Music-Bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Music-Bot.py b/Music-Bot.py index c168b46..f75a2e1 100644 --- a/Music-Bot.py +++ b/Music-Bot.py @@ -261,7 +261,7 @@ else: elif ctx.voice_client.is_playing(): ctx.voice_client.stop() - @bot.event() + @bot.event async def on_voice_state_update(ctx: commands.Context): while True: await asyncio.sleep(1)