Browse Source

fix: only filter messages sent by the bot itself in private chat

master
zhayujie 1 year ago
parent
commit
395edbd9f4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      channel/wechat/wechat_channel.py

+ 1
- 1
channel/wechat/wechat_channel.py View File

@@ -58,7 +58,7 @@ def _check(func):
if conf().get("hot_reload") == True and int(create_time) < int(time.time()) - 60: # 跳过1分钟前的历史消息 if conf().get("hot_reload") == True and int(create_time) < int(time.time()) - 60: # 跳过1分钟前的历史消息
logger.debug("[WX]history message {} skipped".format(msgId)) logger.debug("[WX]history message {} skipped".format(msgId))
return return
if cmsg.my_msg:
if cmsg.my_msg and not cmsg.is_group:
logger.debug("[WX]my message {} skipped".format(msgId)) logger.debug("[WX]my message {} skipped".format(msgId))
return return
return func(self, cmsg) return func(self, cmsg)


Loading…
Cancel
Save