Forgot file mode
This commit is contained in:
parent
21b4eee3dc
commit
da32befea7
4
bot.py
4
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'])
|
||||
Loading…
Reference in New Issue
Block a user