wqqwf
This commit is contained in:
10
main.py
10
main.py
@@ -429,7 +429,8 @@ def kp(event_data):
|
||||
if msg in ['工具箱']:
|
||||
# 发送小程序
|
||||
utils.sendminiProgram(data, account_wxid, wxid, planetXml)
|
||||
if msg in ['加群']:
|
||||
# if msg in ['加群']:
|
||||
if msg == '加群':
|
||||
# 将好友信息=>保存到数据库
|
||||
newFriendDict = WXBotService.get_friend_info(
|
||||
account_wxid, wxid)
|
||||
@@ -472,7 +473,12 @@ def kp(event_data):
|
||||
res = requests.post(winHookUrl, json=newPayload)
|
||||
r = res.json()
|
||||
answer = r.get("answer", "No answer provided")
|
||||
newanswer="@"+wx_name+", "+answer
|
||||
# newanswer="@"+wx_name+", "+answer
|
||||
if "/img" in msg:
|
||||
newanswer=f'@{wx_name} ,{answer} \n [本消息是机器人bot🤖自动回复]'
|
||||
else:
|
||||
newanswer=answer
|
||||
|
||||
|
||||
print(newanswer)
|
||||
WXBotService.send_text_message(robot_wxid=account_wxid,
|
||||
|
||||
Reference in New Issue
Block a user