added code to auto disconnect from channel

This commit is contained in:
unknown committed 2019-10-29 15:39:58 -04:00
1 parent 3c420c16dc
commit 3adc2d32c4
1 file changed
+3
+3
View File
@@ -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):