戳一戳时附带nickname

This commit is contained in:
Asankilp 2024-10-25 00:44:50 +08:00
parent 64062c4d74
commit ba6c219d06

View File

@ -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 = ""