feat: 手机上回复消息,不触发机器人

This commit is contained in:
SSMario
2023-05-16 09:38:38 +08:00
parent 9ee0ea88b5
commit 44cb54a9ea
3 changed files with 6 additions and 0 deletions

View File

@@ -59,6 +59,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