Added auto-disconnect feature

This commit is contained in:
Lukas Blacha
2023-02-08 18:31:04 +01:00
parent 4a0c0161bd
commit 26a2d07714

View File

@@ -261,7 +261,7 @@ else:
elif ctx.voice_client.is_playing(): elif ctx.voice_client.is_playing():
ctx.voice_client.stop() ctx.voice_client.stop()
@bot.event() @bot.event
async def on_voice_state_update(ctx: commands.Context): async def on_voice_state_update(ctx: commands.Context):
while True: while True:
await asyncio.sleep(1) await asyncio.sleep(1)