dqwd
This commit is contained in:
3
main.py
3
main.py
@@ -69,10 +69,11 @@ def chatglmApi(msg, data, group, account_wxid, wxid, wx_name):
|
||||
|
||||
# 群聊被@
|
||||
if "@异度世界" in msg:
|
||||
groupanswer = f'@{wx_name} ,{answer} \n [本消息是机器人bot自动回复]'
|
||||
|
||||
res = requests.post(winHookUrl, json=newPayload)
|
||||
rgroup = res.json()
|
||||
answer = rgroup.get("answer", "No answer provided")
|
||||
groupanswer = f'@{wx_name} ,{answer} \n [本消息是机器人bot自动回复]'
|
||||
if "/img" in msg:
|
||||
newanswer = re.sub(r'#web_img\s+', '', answer)
|
||||
# 发送 @ 消息
|
||||
|
||||
Reference in New Issue
Block a user