Add required slash to file path

This commit is contained in:
Dustin Pianalto 2019-12-23 21:41:47 -09:00
parent 0b8557bff3
commit 0fab3b5a2b

View File

@ -82,7 +82,7 @@ async def on_ready():
reboot = f.readlines() reboot = f.readlines()
if int(reboot[0]) == 1: if int(reboot[0]) == 1:
await bot.get_channel(int(reboot[1])).send('Restart Finished.') await bot.get_channel(int(reboot[1])).send('Restart Finished.')
with open(f'{bot.config_dir}restart', 'w') as f: with open(f'{bot.config_dir}/restart', 'w') as f:
f.write('0') f.write('0')
bot.run(bot.token) bot.run(bot.token)