added code to auto disconnect from channel
This commit is contained in:
1 parent
3c420c16dc
commit
3adc2d32c4
1 file changed
+3
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user