AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

bot会话检测错误

Open mjy1113451 opened this issue 4 months ago • 5 comments

有时@别的bot,或真人,其他有的bot也会回复

mjy1113451 avatar Jul 07 '26 09:07 mjy1113451

这个问题和 #9167 报告的是同一个 Bug——在同一个 AstrBot 实例中运行多个 aiocqhttp 适配器时,事件总线(event_bus)会将同一条群消息同时分发给所有 bot 实例,导致"串号回复"。

从日志可以看到,当用户 @bot A 时,bot B 也收到了该事件并触发了处理 [1]。@ 检测逻辑本身是正确的(通过比较消息中的 qq 字段与 event.get_self_id())[2],但问题出在事件路由层——两个适配器都收到了消息事件。

目前状态:维护者在本地测试未能复现,正在调查中。ignore_bot_self_message 配置不能解决此问题,它只用于过滤同一账号在不同客户端发送的消息 [3]。

建议在 #9167 中补充你的配置文件和相关日志,方便维护者排查。

To reply, just mention @dosu.


Share context across your team and agents. Try Dosu.

Leave Feedback Learn about AstrBot with Dosu Add Dosu to your team

dosubot[bot] avatar Jul 07 '26 09:07 dosubot[bot]

你好,请你提供下详细的日志以及当时的环境,这点信息,我们实在没法给你判断问题所在

Evernight275 avatar Jul 10 '26 12:07 Evernight275

bot最近没出现过,给不了日志

mjy1113451 avatar Jul 11 '26 03:07 mjy1113451

没事,给不出日志不一定是你的问题

Evernight275 avatar Jul 11 '26 10:07 Evernight275

他几年才遇一次

---原始邮件--- 发件人: @.> 发送时间: 2026年7月11日(周六) 晚上6:06 收件人: @.>; 抄送: @.@.>; 主题: Re: [AstrBotDevs/AstrBot] bot会话检测错误 (Issue #9179)

Evernight275 left a comment (AstrBotDevs/AstrBot#9179)

没事,给不出日志不一定是你的问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

mjy1113451 avatar Jul 11 '26 11:07 mjy1113451