Update reboot command

This commit is contained in:
Dustin Pianalto 2019-12-23 23:39:26 -09:00
parent 6796593e5b
commit f834191d96

View File

@ -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()