vev
This commit is contained in:
3
main.py
3
main.py
@@ -109,7 +109,8 @@ def chatglmApi(msg, data, group, account_wxid, wxid, wx_name, newFriendDict):
|
|||||||
msg=newanswer)
|
msg=newanswer)
|
||||||
else:
|
else:
|
||||||
# 女性不回复
|
# 女性不回复
|
||||||
if newFriendDict['sex'] == "女":
|
# if newFriendDict['sex'] == "女":
|
||||||
|
if newFriendDict.get('sex') == "女":
|
||||||
return False
|
return False
|
||||||
# if '/gpt' in msg:
|
# if '/gpt' in msg:
|
||||||
# result = re.sub(r'^/gpt ', '', msg)
|
# result = re.sub(r'^/gpt ', '', msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user