From da32befea7dee1c15c7d1286ae3dc8e1181755e0 Mon Sep 17 00:00:00 2001 From: Marco Loewe Date: Tue, 14 Nov 2023 12:32:48 +0100 Subject: [PATCH] Forgot file mode --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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