mirror of
https://github.com/LiteyukiStudio/marshoai-melo.git
synced 2024-11-27 13:15:02 +08:00
戳一戳时附带nickname
This commit is contained in:
parent
64062c4d74
commit
ba6c219d06
@ -125,8 +125,9 @@ async def marsho_main(event: Union[GroupMessageEvent, PrivateMessageEvent], is_g
|
|||||||
@on_event(checker=PokeMarshoChecker())
|
@on_event(checker=PokeMarshoChecker())
|
||||||
async def poke(event: PokeNotifyEvent, adapter: Adapter): # 尚未实现私聊戳一戳 QwQ
|
async def poke(event: PokeNotifyEvent, adapter: Adapter): # 尚未实现私聊戳一戳 QwQ
|
||||||
#await adapter.send_custom(str(event.user_id),group_id=event.group_id)
|
#await adapter.send_custom(str(event.user_id),group_id=event.group_id)
|
||||||
user_id = event.user_id
|
user_id = str(event.user_id)
|
||||||
target_id = get_target_id(event)
|
nicknames = await get_nicknames()
|
||||||
|
nickname = nicknames.get(user_id, "")
|
||||||
# nicknames = await get_nicknames()
|
# nicknames = await get_nicknames()
|
||||||
# nickname = nicknames.get(user_id, "")
|
# nickname = nicknames.get(user_id, "")
|
||||||
nickname = ""
|
nickname = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user