From 3b181cff93cd915f856e0ab648c4fe79c092a39c Mon Sep 17 00:00:00 2001 From: Thetail001 <56257172+Thetail001@users.noreply.github.com> Date: Sat, 4 Oct 2025 00:20:27 +0800 Subject: [PATCH] Fix: Correct data type mismatch in AtBotRule (#1705) Fix can't '@' in QQ group. --- pkg/pipeline/resprule/rules/atbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pipeline/resprule/rules/atbot.py b/pkg/pipeline/resprule/rules/atbot.py index 51431519..68c3ace9 100644 --- a/pkg/pipeline/resprule/rules/atbot.py +++ b/pkg/pipeline/resprule/rules/atbot.py @@ -21,7 +21,7 @@ class AtBotRule(rule_model.GroupRespondRule): def remove_at(message_chain: platform_message.MessageChain): nonlocal found for component in message_chain.root: - if isinstance(component, platform_message.At) and component.target == query.adapter.bot_account_id: + if isinstance(component, platform_message.At) and str(component.target) == str(query.adapter.bot_account_id): message_chain.remove(component) found = True break