From 300b138fe20d6fac42b11a36b242b8491aa03162 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Thu, 13 Aug 2020 22:18:37 +0200 Subject: [PATCH] fix #35 --- kabot/kabot/kabot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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):