mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
update send_img
This commit is contained in:
parent
615f3a58e9
commit
b7b16cfd21
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user