Skip to content

Commit

Permalink
🐛修正nickname无法获取
Browse files Browse the repository at this point in the history
  • Loading branch information
Asankilp authored Nov 17, 2024
1 parent 9635dbe commit b3f95c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_plugin_marshoai/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit b3f95c2

Please sign in to comment.