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