Skip to content

Commit

Permalink
fix: ignore system message
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie committed Oct 18, 2023
1 parent 21b956b commit aaed3f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions channel/wechat/wechat_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ def startup(self):
@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
Expand Down

0 comments on commit aaed3f9

Please sign in to comment.