This commit is contained in:
liuwei
2025-02-17 15:20:47 +08:00
parent d55cb5893a
commit 5970ecd591
2 changed files with 2 additions and 6 deletions

View File

@@ -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)

View File

@@ -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()