diff --git a/robot.py b/robot.py index 03c161f..a0521b5 100644 --- a/robot.py +++ b/robot.py @@ -199,10 +199,6 @@ class Robot(Job): except Exception as e: self.LOG.error(f"revoke_receive_message error: {e}") - # 如果在群里被 @ - if msg.roomid not in self.config.GROUPS: # 不在配置的响应的群列表里,忽略 - return - if msg.is_at(self.wxid): # 被@ self.toAt(msg) diff --git a/robot_cmd/robot_command.py b/robot_cmd/robot_command.py index 29d1986..b45913c 100644 --- a/robot_cmd/robot_command.py +++ b/robot_cmd/robot_command.py @@ -196,7 +196,7 @@ def simulate_commands(): # 加载本地缓存 GroupBotManager.load_local_cache() - group_id = "12345" + group_id = "49571962306@chatroom" # 启用群机器人 print(GroupBotManager.handle_command(group_id, "ROBOT-启用")) @@ -248,4 +248,4 @@ def simulate_commands(): # 执行模拟命令 -# simulate_commands() +simulate_commands()