自动好友回复
This commit is contained in:
24
main.py
24
main.py
@@ -276,9 +276,20 @@ def kp(event_data):
|
|||||||
# from_wxid='49187487591@chatroom',
|
# from_wxid='49187487591@chatroom',
|
||||||
# new_wxid='wxid_4413224132412')
|
# new_wxid='wxid_4413224132412')
|
||||||
|
|
||||||
|
|
||||||
# 发送小程序
|
# 发送小程序
|
||||||
utils.sendminiProgram(data, account_wxid, wxid, planetXml)
|
utils.sendminiProgram(data, account_wxid, wxid, planetXml)
|
||||||
|
if msg in ['test']:
|
||||||
|
WXBotService.send_text_message(robot_wxid=account_wxid,
|
||||||
|
from_wxid=newFriendWxid,
|
||||||
|
msg=f'我是机器人🤖助理,智能gpt对话
|
||||||
|
“/img 英语描述” 可以文生图
|
||||||
|
.................................................
|
||||||
|
参与交流,请回复关键词 "加群"
|
||||||
|
……………………………………
|
||||||
|
一名开发者🧑💻
|
||||||
|
副业:跨境电商
|
||||||
|
爱折腾homelab
|
||||||
|
#公众号:异度世界')
|
||||||
|
|
||||||
# if msg in ['腾讯云']:
|
# if msg in ['腾讯云']:
|
||||||
# # 发送小程序
|
# # 发送小程序
|
||||||
@@ -308,6 +319,17 @@ def kp(event_data):
|
|||||||
# newFriendDict=WXBotService.get_friend_info(account_wxid, newFriendWxid)
|
# newFriendDict=WXBotService.get_friend_info(account_wxid, newFriendWxid)
|
||||||
# userClass=models.User(**(newFriendDict['data']))
|
# userClass=models.User(**(newFriendDict['data']))
|
||||||
# crud.create_user(db= SessionLocal(),user=userClass)
|
# crud.create_user(db= SessionLocal(),user=userClass)
|
||||||
|
WXBotService.send_text_message(robot_wxid=account_wxid,
|
||||||
|
from_wxid=newFriendWxid,
|
||||||
|
msg=f'我是机器人🤖助理,智能gpt对话
|
||||||
|
“/img 英语描述” 可以文生图
|
||||||
|
.................................................
|
||||||
|
参与交流,请回复关键词 "加群"
|
||||||
|
……………………………………
|
||||||
|
一名开发者🧑💻
|
||||||
|
副业:跨境电商
|
||||||
|
爱折腾homelab
|
||||||
|
#公众号:异度世界')
|
||||||
|
|
||||||
elif msg_type == 42: # 42 名片消息
|
elif msg_type == 42: # 42 名片消息
|
||||||
xml_msg = ET.fromstring(msg)
|
xml_msg = ET.fromstring(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user