From f09d8e3e9c76937d41e9de5abc28ae648356e16a Mon Sep 17 00:00:00 2001 From: Lukas Blacha Date: Wed, 8 Feb 2023 18:50:58 +0100 Subject: [PATCH] Added auto-disconnect feature --- Music-Bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Music-Bot.py b/Music-Bot.py index fc21203..b8a7e89 100644 --- a/Music-Bot.py +++ b/Music-Bot.py @@ -204,6 +204,7 @@ else: player, after=lambda e: print(f"Player error: {e}") if e else None ) await ctx.respond(f"{success}Now playing: `{player.title}`\nRequested by {ctx.author.mention}") + await ctx.voice_client.disconnect() @bot.slash_command(name="pause", description="Pauses the playback")