mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
no message
This commit is contained in:
parent
25d63966de
commit
71ce9153ed
@ -79,7 +79,6 @@ async def get_one_problem(event, problem):
|
||||
rf",url={img}",
|
||||
f"",
|
||||
)
|
||||
print(_problem)
|
||||
problem += _p[: _p.find(f"[CQ:image,file={r.group(1)},url={img}]")] + image(img)
|
||||
_p = _p[
|
||||
_p.find(f"[CQ:image,file={r.group(1)},url={img}]") + len(f"[CQ:image,file={r.group(1)},url={img}]"):]
|
||||
@ -100,7 +99,6 @@ async def get_one_image_problem(event, problem):
|
||||
idx = 0
|
||||
img_list = re.findall(rf"\[CQ:image,file=(.*?)]", problem)
|
||||
at_list = re.findall(rf"\[CQ:at,qq=(.*?)]", problem)
|
||||
print(at_list)
|
||||
if img_list:
|
||||
for img in img_list:
|
||||
problem = problem.replace(f'[CQ:image,file={img}]', f'[__placeholder_{idx}]', 1)
|
||||
@ -112,7 +110,6 @@ async def get_one_image_problem(event, problem):
|
||||
placeholder_list.append([idx, ats])
|
||||
idx += 1
|
||||
_p = problem
|
||||
print(_p)
|
||||
problem = ''
|
||||
if not placeholder_list:
|
||||
problem = _p
|
||||
|
||||
Loading…
Reference in New Issue
Block a user