mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-12-16 13:40:53 +08:00
✨ 优化首次查询提示
This commit is contained in:
parent
0f0ca49f64
commit
84d603f277
@ -134,7 +134,7 @@ def CommandPlayer(limit: int = 3, only_cn: bool = True) -> List[Player]:
|
|||||||
elif uid := await get_uid(event=event, user_id=user):
|
elif uid := await get_uid(event=event, user_id=user):
|
||||||
uids = [uid]
|
uids = [uid]
|
||||||
else:
|
else:
|
||||||
await matcher.finish('第一次查询请把uid给我哦', at_sender=True)
|
await matcher.finish('第一次查询请把UID加在指令后面', at_sender=True)
|
||||||
extra_info = replace_all(extra_info, uids)
|
extra_info = replace_all(extra_info, uids)
|
||||||
for uid in uids:
|
for uid in uids:
|
||||||
query_list.append(Player(user_id=user, uid=uid))
|
query_list.append(Player(user_id=user, uid=uid))
|
||||||
@ -165,7 +165,7 @@ def CommandUID(only_cn: bool = True) -> str:
|
|||||||
elif uid := await get_uid(event=event):
|
elif uid := await get_uid(event=event):
|
||||||
uid = uid
|
uid = uid
|
||||||
else:
|
else:
|
||||||
await matcher.finish('第一次查询请把UID给我哦')
|
await matcher.finish('第一次查询请把UID加在指令后面')
|
||||||
state['clear_msg'] = event.message.extract_plain_text().replace(uid, '')
|
state['clear_msg'] = event.message.extract_plain_text().replace(uid, '')
|
||||||
return uid
|
return uid
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user