From ba6c219d06d89f011e43f44ebc1c4ce718ffb76e Mon Sep 17 00:00:00 2001 From: Asankilp Date: Fri, 25 Oct 2024 00:44:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=B3=E4=B8=80=E6=88=B3=E6=97=B6=E9=99=84?= =?UTF-8?q?=E5=B8=A6nickname?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- marshoai/__plugin__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/marshoai/__plugin__.py b/marshoai/__plugin__.py index 45da596..d6ae827 100644 --- a/marshoai/__plugin__.py +++ b/marshoai/__plugin__.py @@ -125,8 +125,9 @@ async def marsho_main(event: Union[GroupMessageEvent, PrivateMessageEvent], is_g @on_event(checker=PokeMarshoChecker()) async def poke(event: PokeNotifyEvent, adapter: Adapter): # 尚未实现私聊戳一戳 QwQ #await adapter.send_custom(str(event.user_id),group_id=event.group_id) - user_id = event.user_id - target_id = get_target_id(event) + user_id = str(event.user_id) + nicknames = await get_nicknames() + nickname = nicknames.get(user_id, "") # nicknames = await get_nicknames() # nickname = nicknames.get(user_id, "") nickname = ""