This commit is contained in:
Milka64 2020-08-13 22:18:37 +02:00
parent 518687059f
commit 300b138fe2

View file

@ -135,8 +135,10 @@ 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('disconnect')
await cmd.invoke(ctx)
await self.bot.close() await self.bot.close()
sys.exit() exit()
@commands.command(help='Update local repo') @commands.command(help='Update local repo')
async def update(self, message): async def update(self, message):