diff options
author | Kyomotoi <[email protected]> | 2020-08-11 09:05:23 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-08-11 09:05:23 +0800 |
commit | affbb5f423c1e345ead9d85e9283dd90496265af (patch) | |
tree | 4a20e41d898a3e7930af9dc468e4018a78f39df0 /ATRI/plugins/switch.py | |
parent | 593c9afe1a80a299248b4fa152d9920a7a99cefa (diff) | |
download | ATRI-affbb5f423c1e345ead9d85e9283dd90496265af.tar.gz ATRI-affbb5f423c1e345ead9d85e9283dd90496265af.tar.bz2 ATRI-affbb5f423c1e345ead9d85e9283dd90496265af.zip |
[Fix]
Diffstat (limited to 'ATRI/plugins/switch.py')
-rw-r--r-- | ATRI/plugins/switch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/switch.py b/ATRI/plugins/switch.py index dc998a7..3e05467 100644 --- a/ATRI/plugins/switch.py +++ b/ATRI/plugins/switch.py @@ -10,7 +10,7 @@ master = bot.config.SUPERUSERS @on_command('switch', aliases = ['开启', '关闭'], only_to_me = False) async def _(session: CommandSession): - with open(f"ATRI/plugins/switch/switch.json", 'r') as f: + with open("ATRI/plugins/switch/switch.json", 'r') as f: data = json.load(f) if session.event.user_id in master: @@ -69,7 +69,7 @@ async def _(session: CommandSession): pass a = json.dumps(data) - f2 = open(f"ATRI/plugins/switch/switch.json", 'w') + f2 = open("ATRI/plugins/switch/switch.json", 'w') f2.write(a) f2.close |