From b7b16cfd215c74d7805a59ea0392417c6a1941a6 Mon Sep 17 00:00:00 2001 From: hibiki <775757368@qq.com> Date: Thu, 19 Aug 2021 19:12:33 +0800 Subject: [PATCH] update send_img --- plugins/send_img/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/send_img/__init__.py b/plugins/send_img/__init__.py index ca16be71..39b0757d 100644 --- a/plugins/send_img/__init__.py +++ b/plugins/send_img/__init__.py @@ -46,7 +46,7 @@ search_url = "https://api.fantasyzone.cc/tu/search.php" async def _(bot: Bot, event: MessageEvent, state: T_State): img_id = get_message_text(event.json()) path = cn2py(state["_prefix"]["raw_command"]) + "/" - if path in IMAGE_DIR_LIST: + if state["_prefix"]["raw_command"] in IMAGE_DIR_LIST: if not os.path.exists(f"{IMAGE_PATH}/{path}/"): os.mkdir(f"{IMAGE_PATH}/{path}/") length = len(os.listdir(IMAGE_PATH + path)) - 1