mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
fix bug
This commit is contained in:
parent
c3e10342b2
commit
07f337e010
@ -197,6 +197,7 @@ async def get_uid_in_msg(event: MessageEvent, msg: Message):
|
|||||||
uid = await get_last_query(str(event.user_id))
|
uid = await get_last_query(str(event.user_id))
|
||||||
return uid, '', str(event.user_id), True
|
return uid, '', str(event.user_id), True
|
||||||
user_id = await get_at_target(event.message) or str(event.user_id)
|
user_id = await get_at_target(event.message) or str(event.user_id)
|
||||||
|
msg = re.sub(r'\[CQ.*?\]', '', msg)
|
||||||
use_cache = False if '-r' in msg else True
|
use_cache = False if '-r' in msg else True
|
||||||
msg = msg.replace('-r', '').strip()
|
msg = msg.replace('-r', '').strip()
|
||||||
find_uid = r'(?P<uid>(1|2|5)\d{8})'
|
find_uid = r'(?P<uid>(1|2|5)\d{8})'
|
||||||
|
Loading…
Reference in New Issue
Block a user