🐛修正nickname无法获取

This commit is contained in:
Akarin~ 2024-11-18 00:52:41 +08:00 committed by GitHub
parent 9635dbe081
commit b3f95c2d1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,7 +157,7 @@ async def marsho(target: MsgTarget, event: Event, text: Optional[UniMsg] = None)
user_id = event.get_user_id()
nicknames = await get_nicknames()
user_nickname = nicknames.get(user_id, "")
if nickname != "":
if user_nickname != "":
nickname_prompt = f"\n*此消息的说话者:{user_nickname}*"
else:
nickname_prompt = ""