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()