Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Bot): 修改 OneBot 下 getSenderName 方法逻辑,优先使用群名片 sender.card,与 Mirai 侧一致 #127

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

Natsukage
Copy link
Contributor

目前 OneBot 实现中的getSenderName 直接使用了 messageEventObject["sender"].asJsonObject["nickname"].asString
而 Mirai 实现中则会优先使用群名片。
OneBot的Sender中包含Card群名片信息,应该优先使用此成员而非Nick。

Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petpet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 10:48am

@Dituon Dituon merged commit 35a4400 into Dituon:dev Jan 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants