mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 22:27:13 +08:00
fix: ignore system message
This commit is contained in:
@@ -142,6 +142,9 @@ class WechatChannel(ChatChannel):
|
|||||||
@time_checker
|
@time_checker
|
||||||
@_check
|
@_check
|
||||||
def handle_single(self, cmsg: ChatMessage):
|
def handle_single(self, cmsg: ChatMessage):
|
||||||
|
# filter system message
|
||||||
|
if cmsg.other_user_id in ["weixin"]:
|
||||||
|
return
|
||||||
if cmsg.ctype == ContextType.VOICE:
|
if cmsg.ctype == ContextType.VOICE:
|
||||||
if conf().get("speech_recognition") != True:
|
if conf().get("speech_recognition") != True:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user