From 140f3906605e25a89e6dfdfaf44095f25fa37143 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Wed, 29 Apr 2020 14:42:50 +0200 Subject: [PATCH] add stop command --- kabot/kabot/kabot.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 6d19ab1..5917803 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -103,9 +103,11 @@ class Mybot(commands.Cog): async def restart(self, ctx): await self.bot.logout() - @commands.command(help='Restart Bot') - async def restart_queue(self, ctx): - self.play_next.restart() + @commands.command(help='Stop Bot vocal') + async def stop(self, ctx): + self.play_next.stop() + self.sounds = [] + self.play_next.start() @commands.command(help='Update local repo') async def update(self, message):