diff --git a/bot.py b/bot.py index b727cda..ded2759 100644 --- a/bot.py +++ b/bot.py @@ -53,10 +53,10 @@ def write_json(key: str, value: any): data[key] = value if exists('config.local.json'): - with open('config.local.json') as f: + with open('config.local.json', 'w') as f: f.write(json.dumps(data)) elif exists('config.json'): - with open('config.json') as f: + with open('config.json', 'w') as f: f.write(json.dumps(data)) client.run(data['token']) \ No newline at end of file