This commit is contained in:
hackrobot
2024-04-28 14:45:33 +08:00
parent da45c2017d
commit 4c531f150c

View File

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