Skip to content

Commit bfca546

Browse files
committed
fix: gewechat 去除强制忽略自身消息的逻辑 #1388
1 parent a3d469d commit bfca546

File tree

1 file changed

+4
-3
lines changed
  • astrbot/core/platform/sources/gewechat

1 file changed

+4
-3
lines changed

astrbot/core/platform/sources/gewechat/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ async def _convert(self, data: dict) -> AstrBotMessage:
174174
user_id = from_user_name
175175

176176
# 检查消息是否由自己发送,若是则忽略
177-
if user_id == abm.self_id:
178-
logger.info("忽略自己发送的消息")
179-
return None
177+
# 已经有可配置项专门配置是否需要响应自己的消息,因此这里注释掉。
178+
# if user_id == abm.self_id:
179+
# logger.info("忽略自己发送的消息")
180+
# return None
180181

181182
abm.message = []
182183

0 commit comments

Comments
 (0)