summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2022-10-03 08:07:04 +0800
committerKyomotoi <[email protected]>2022-10-03 08:07:04 +0800
commit3b3d13e0cf9d76981c5a915624d001b10d25ccd1 (patch)
tree6ddd7b0bfdb50015e40eb1f503ac8ac644a8ea6f
parentaca6eff866a80480fda2b8e38781dff17420682c (diff)
downloadATRI-3b3d13e0cf9d76981c5a915624d001b10d25ccd1.tar.gz
ATRI-3b3d13e0cf9d76981c5a915624d001b10d25ccd1.tar.bz2
ATRI-3b3d13e0cf9d76981c5a915624d001b10d25ccd1.zip
🍻 修复 bug
-rw-r--r--ATRI/plugins/console/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ATRI/plugins/console/__init__.py b/ATRI/plugins/console/__init__.py
index 2bd14c8..575ecd9 100644
--- a/ATRI/plugins/console/__init__.py
+++ b/ATRI/plugins/console/__init__.py
@@ -16,7 +16,7 @@ gen_console_key = Console().cmd_as_group("auth", "获取进入网页后台的凭
@gen_console_key.got("is_pub_n", "咱的运行环境是否有公网(y/n)")
async def _(event: PrivateMessageEvent, is_pub_n: str = ArgPlainText("is_pub_n")):
data_path = CONSOLE_DIR / "data.json"
- if not data_path.is_file:
+ if not data_path.is_file():
with open(data_path, "w", encoding="utf-8") as w:
w.write(json.dumps(dict()))