1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-10-03 07:48:58 +02:00

add VC leave to !stop

This commit is contained in:
Jonas Leder 2020-04-10 21:16:34 +02:00
parent 3742d6ce44
commit 31ba81259f

4
bot.py
View file

@ -445,6 +445,10 @@ async def stop(ctx):
titleQue = []
downloadQue = []
player.stop()#stop the current song
await player.disconnect()#disconnect from the voice chat
player = None#clear the player variable
playerServer = None#allow everyone to invite the music bot
remove("*.mp3")#delete all mp3 files