Added auto-disconnect feature

This commit is contained in:
Lukas Blacha committed 2023-02-08 18:54:39 +01:00
1 parent fb0a12c213
commit 07ca78e1bc
1 file changed
+1 -1
+1 -1
View File
@@ -208,7 +208,7 @@ else:
while ctx.voice_client.is_playing(): while ctx.voice_client.is_playing():
asyncio.sleep(1) asyncio.sleep(1)
else: else:
ctx.voice_client.disconnect() await ctx.voice_client.disconnect()
@bot.slash_command(name="pause", description="Pauses the playback") @bot.slash_command(name="pause", description="Pauses the playback")