diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index daf4b1b..865d60c 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -135,8 +135,10 @@ class Mybot(commands.Cog): @commands.command(help='Restart Bot') async def restart(self, ctx): + cmd = self.bot.get_command('disconnect') + await cmd.invoke(ctx) await self.bot.close() - sys.exit() + exit() @commands.command(help='Update local repo') async def update(self, message):