Added auto-disconnect feature
This commit is contained in:
1 parent
fb0a12c213
commit
07ca78e1bc
1 file changed
+1
-1
+1
-1
@@ -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