binding-and-user-name-mapping#20
Conversation
PR #16 审查意见(去除已忽略/已修复项)🟠 严重1. 验证流程存在竞态条件文件: orchestrator.py:614-670 async def _handle_verification_reply(self, event, code):
result = self._verification_manager.verify(...)
# ↓ 验证码校验通过到 bind() 执行之间有窗口
self._bind_manager.bind(...)验证码校验成功到
虽然 建议: 用 2. 直接访问私有成员
|
…apsulation, test coverage, parsing, retry limit
|
/bind | 从 QQ 私信 发起,绑定到指定 Discord 用户
-- | --
我觉得这个没必要吧?把这个去了之后上面那个匹配的问题也不用管了。 |
|
All 7 review items have been addressed in commit 798345e: 🔴 Critical
🟡 Medium 🔵 Minor 7 项审查意见已全部修复: 🔴 严重
🟡 中等 🔵 轻微 |
那就改单向 |
Comment out the _parse_bind_target path that allowed QQ users to bind to a Discord user by display name. The original code is preserved as comments for reference. PR review (TaranDahl): this feature is unnecessary; removing it also eliminates the related name-matching issue (Phobos-developers#4 in PR Phobos-developers#16 review).
Both branches added code after _on_discord_message: - HEAD: _on_discord_dm method - upstream/master: _last_processed_id persistence (PR Phobos-developers#18) Kept both: persistence at end of _on_discord_message, _on_discord_dm after it.
/bind <QQ号>/bind <Discord昵称>/unbind当机器人使用跨群转发功能转发一条消息时:
/bind <QQ number>/bind <Discord nickname>/unbindWhen the bot forwards a message using the cross‑group forwarding feature: