From 3adc2d32c451fe400357daf3a7ec2bb60fec3e44 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 29 Oct 2019 15:39:58 -0400 Subject: [PATCH] added code to auto disconnect from channel --- r0b3bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/r0b3bot.py b/r0b3bot.py index 76f3a43..459b884 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -90,6 +90,9 @@ async def bitch(ctx): source = FFmpegPCMAudio('monkey_bitch.mp3') player = voice.play(source) player.start() + await asyncio.sleep(2) + await player.stop() + await channel.disconnect() #@bot.command() #async def bitch(ctx):