From cf8f0603cac3b9c118de4e24fcb9e8d2ddc74b6e Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 26 Apr 2025 22:57:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20gewechat=20=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E5=BC=BA=E5=88=B6=E5=BF=BD=E7=95=A5=E8=87=AA=E8=BA=AB?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes: #1388 --- astrbot/core/platform/sources/gewechat/client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/astrbot/core/platform/sources/gewechat/client.py b/astrbot/core/platform/sources/gewechat/client.py index f23e1b309..360dddff5 100644 --- a/astrbot/core/platform/sources/gewechat/client.py +++ b/astrbot/core/platform/sources/gewechat/client.py @@ -174,9 +174,10 @@ class SimpleGewechatClient: user_id = from_user_name # 检查消息是否由自己发送,若是则忽略 - if user_id == abm.self_id: - logger.info("忽略自己发送的消息") - return None + # 已经有可配置项专门配置是否需要响应自己的消息,因此这里注释掉。 + # if user_id == abm.self_id: + # logger.info("忽略自己发送的消息") + # return None abm.message = []