From 68525eeafd8e62d6411aff1b813c58a6af363b2a Mon Sep 17 00:00:00 2001 From: Milka64 Date: Sun, 13 Dec 2020 18:28:57 +0100 Subject: [PATCH] try to fix restart cmd again --- kabot/kabot/kabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 78dba6e..2b995d9 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -163,7 +163,7 @@ class Mybot(commands.Cog): @commands.command(help='Restart Bot') async def restart(self, ctx): cmd = self.bot.get_command('leave') - cmd.invoke(ctx) + await cmd.invoke(ctx) await self.bot.close() exit()