Merge pull request #1104 from mari1995/feat_my_msg

feat: 手机上回复消息,不触发机器人
This commit is contained in:
zhayujie
2023-07-31 18:02:41 +08:00
committed by GitHub
3 changed files with 6 additions and 0 deletions

View File

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