From eada778ab5b215e68213bd57040e5a2151113059 Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Mon, 19 Dec 2022 17:19:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=8E=E6=B6=88=E6=81=AF=E9=93=BE?= =?UTF-8?q?=E4=B8=AD=E7=A7=BB=E9=99=A4at=20me=E5=89=8D=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qqbot/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/qqbot/manager.py b/pkg/qqbot/manager.py index b3783d0e..84e96596 100644 --- a/pkg/qqbot/manager.py +++ b/pkg/qqbot/manager.py @@ -290,7 +290,8 @@ class QQBotManager: def process(text = None) -> str: replys = "" - event.message_chain.remove(At(self.bot.qq)) + if At(self.bot.qq) in event.message_chain: + event.message_chain.remove(At(self.bot.qq)) processing.append("group_{}".format(event.sender.id))