mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-01-26 18:12:47 +08:00
🐛修正nickname无法获取
This commit is contained in:
parent
9635dbe081
commit
b3f95c2d1e
@ -157,7 +157,7 @@ async def marsho(target: MsgTarget, event: Event, text: Optional[UniMsg] = None)
|
|||||||
user_id = event.get_user_id()
|
user_id = event.get_user_id()
|
||||||
nicknames = await get_nicknames()
|
nicknames = await get_nicknames()
|
||||||
user_nickname = nicknames.get(user_id, "")
|
user_nickname = nicknames.get(user_id, "")
|
||||||
if nickname != "":
|
if user_nickname != "":
|
||||||
nickname_prompt = f"\n*此消息的说话者:{user_nickname}*"
|
nickname_prompt = f"\n*此消息的说话者:{user_nickname}*"
|
||||||
else:
|
else:
|
||||||
nickname_prompt = ""
|
nickname_prompt = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user