fix: ignore system message

This commit is contained in:
zhayujie
2023-10-18 11:14:44 +08:00
parent 21b956b983
commit aaed3f9839

View File

@@ -142,6 +142,9 @@ class WechatChannel(ChatChannel):
@time_checker
@_check
def handle_single(self, cmsg: ChatMessage):
# filter system message
if cmsg.other_user_id in ["weixin"]:
return
if cmsg.ctype == ContextType.VOICE:
if conf().get("speech_recognition") != True:
return