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:
parent
3742d6ce44
commit
31ba81259f
1 changed files with 4 additions and 0 deletions
4
bot.py
4
bot.py
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue