From 3c6a3657181aca3fdaad44be62a47dcca497af5c Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Fri, 13 Aug 2021 21:41:18 +0800 Subject: [PATCH] Update __init__.py --- plugins/upload_img/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/upload_img/__init__.py b/plugins/upload_img/__init__.py index ab10571a..82ca5741 100644 --- a/plugins/upload_img/__init__.py +++ b/plugins/upload_img/__init__.py @@ -52,7 +52,7 @@ async def _(bot: Bot, event: MessageEvent, state: T_State): @upload_img.got("path", prompt="要将图片上传至什么图库呢?") @upload_img.got("imgs", prompt="图呢图呢图呢图呢!GKD!") async def _(bot: Bot, event: MessageEvent, state: T_State): - path = IMAGE_PATH + cn2py(state["path"]) + path = IMAGE_PATH + cn2py(state["path"]) + '/' img_list = state["imgs"] img_id = len(os.listdir(path)) failed_list = []