Added auto-disconnect feature
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user