try to fix restart cmd again
This commit is contained in:
parent
f127c9ed75
commit
68525eeafd
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ class Mybot(commands.Cog):
|
||||||
@commands.command(help='Restart Bot')
|
@commands.command(help='Restart Bot')
|
||||||
async def restart(self, ctx):
|
async def restart(self, ctx):
|
||||||
cmd = self.bot.get_command('leave')
|
cmd = self.bot.get_command('leave')
|
||||||
cmd.invoke(ctx)
|
await cmd.invoke(ctx)
|
||||||
await self.bot.close()
|
await self.bot.close()
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue