From 31ba81259ffffff11f74ecc57813ac12ccef1758 Mon Sep 17 00:00:00 2001 From: Jonas Leder Date: Fri, 10 Apr 2020 21:16:34 +0200 Subject: [PATCH] add VC leave to !stop --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 7691bf6..1708321 100644 --- a/bot.py +++ b/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