fix wordbank

This commit is contained in:
LambdaYH
2022-06-16 00:43:32 +08:00
parent 1fca0787be
commit 0e8d7537d4
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ async def check(bot: Bot, event: Event, state: T_State) -> bool:
list_img = get_message_img_file(event.json())
if list_img:
for img_file in list_img:
strinfo = re.compile(f"{img_file},subType=\d*]")
strinfo = re.compile(f"{img_file},.*?]")
msg = strinfo.sub(f'{img_file}]', msg)
return bool(
await WordBank.check(event.group_id, msg, event.is_tome())