try to fix restart cmd again

This commit is contained in:
Milka64 2020-12-13 18:28:57 +01:00
parent f127c9ed75
commit 68525eeafd

View file

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