From a8480af66728ef33b502262be217c24164f59354 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 23 Aug 2022 18:14:35 +0000 Subject: [PATCH] fix end of queue behavior --- src/musicbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/musicbot.py b/src/musicbot.py index 44eb0d7..0d0361c 100644 --- a/src/musicbot.py +++ b/src/musicbot.py @@ -175,7 +175,9 @@ async def start_playing(ctx): except Exception as e: print(e) + await ctx.voice_client.disconnect() bot.queue = None + shutil.rmtree('session/') # temporary cleanup procedure, will add caching later bot.start_playing = start_playing