Added auto-disconnect feature
This commit is contained in:
1 parent
4a0c0161bd
commit
26a2d07714
1 file changed
+1
-1
+1
-1
@@ -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