This commit is contained in:
hackrobot
2024-04-28 14:34:47 +08:00
parent ad99b0d016
commit 19326e4e78

View File

@@ -52,6 +52,8 @@ def chatglmApi(msg, data, group, account_wxid, wxid, wx_name):
winHookUrl = 'http://chatbot.hackrobot.cn/img'
payload = {'query': msg}
print("msg=====>", msg)
if "@异度世界" in msg:
msg = re.sub(r"@异度世界\[@emoji=\d+\]", "", msg)
newPayload = json.loads(json.dumps(payload))
res = requests.post(winHookUrl, json=newPayload)
r = res.json()