Update reboot command
This commit is contained in:
parent
6796593e5b
commit
f834191d96
@ -18,7 +18,7 @@ class Admin(commands.Cog):
|
|||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def reboot(self, ctx):
|
async def reboot(self, ctx):
|
||||||
await ctx.send('Geeksbot is restarting.')
|
await ctx.send('Geeksbot is restarting.')
|
||||||
with open(f'/mnt/{self.bot.config_dir}/restart', 'w') as f:
|
with open(f'{self.bot.config_dir}/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")
|
||||||
await self.bot.close()
|
await self.bot.close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user