Update reboot command

This commit is contained in:
Dustin Pianalto 2019-12-23 23:36:12 -09:00
parent 8a3df5e399
commit b4ac406d7f

View File

@ -21,8 +21,7 @@ class Admin(commands.Cog):
with open(f'/mnt/{self.bot.SECRETS_BUCKET_NAME}/restart', 'w') as f:
f.write(f'1\n{ctx.channel.id}')
admin_logger.info("Rebooting")
# noinspection PyProtectedMember
os._exit(1)
await self.bot.close()
# TODO Fix view_code
@commands.command(hidden=True)