This commit is contained in:
hackrobot
2024-05-17 13:54:18 +08:00
parent 5586e25ce6
commit 8fc462254f

View File

@@ -109,7 +109,8 @@ def chatglmApi(msg, data, group, account_wxid, wxid, wx_name, newFriendDict):
msg=newanswer)
else:
# 女性不回复
if newFriendDict['sex'] == "":
# if newFriendDict['sex'] == "女":
if newFriendDict.get('sex') == "":
return False
# if '/gpt' in msg:
# result = re.sub(r'^/gpt ', '', msg)