This commit is contained in:
hackrobot
2024-04-28 14:30:31 +08:00
parent 68f5fbc10a
commit ad99b0d016

13
main.py
View File

@@ -484,18 +484,7 @@ def kp(event_data):
# 收到群聊消息 # 收到群聊消息
if group: if group:
# 异度世界交流群2 48357370389@chatroom | 小号群18507867712@chatroom # 异度世界交流群2 48357370389@chatroom | 小号群18507867712@chatroom
if group == "18507867712@chatroom" or group == "48357370389@chatroom": chatglmApi(msg, data, group, account_wxid, wxid, wx_name)
# 群聊被@
if "@异度世界" in msg:
# 发送 @ 消息
WXBotService.send_at_message(
robot_wxid=account_wxid,
from_wxid=group,
msg=f'@{wx_name} testgroup',
wx_list=wxid)
else:
# 其他群组消息,不做响应
pass
else: else:
# pass # pass
if msg in ['工具箱']: if msg in ['工具箱']: