Update reboot command
This commit is contained in:
parent
8a3df5e399
commit
b4ac406d7f
@ -21,8 +21,7 @@ class Admin(commands.Cog):
|
|||||||
with open(f'/mnt/{self.bot.SECRETS_BUCKET_NAME}/restart', 'w') as f:
|
with open(f'/mnt/{self.bot.SECRETS_BUCKET_NAME}/restart', 'w') as f:
|
||||||
f.write(f'1\n{ctx.channel.id}')
|
f.write(f'1\n{ctx.channel.id}')
|
||||||
admin_logger.info("Rebooting")
|
admin_logger.info("Rebooting")
|
||||||
# noinspection PyProtectedMember
|
await self.bot.close()
|
||||||
os._exit(1)
|
|
||||||
|
|
||||||
# TODO Fix view_code
|
# TODO Fix view_code
|
||||||
@commands.command(hidden=True)
|
@commands.command(hidden=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user