debug
This commit is contained in:
4
robot.py
4
robot.py
@@ -199,10 +199,6 @@ class Robot(Job):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.LOG.error(f"revoke_receive_message error: {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): # 被@
|
if msg.is_at(self.wxid): # 被@
|
||||||
self.toAt(msg)
|
self.toAt(msg)
|
||||||
|
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ def simulate_commands():
|
|||||||
# 加载本地缓存
|
# 加载本地缓存
|
||||||
GroupBotManager.load_local_cache()
|
GroupBotManager.load_local_cache()
|
||||||
|
|
||||||
group_id = "12345"
|
group_id = "49571962306@chatroom"
|
||||||
|
|
||||||
# 启用群机器人
|
# 启用群机器人
|
||||||
print(GroupBotManager.handle_command(group_id, "ROBOT-启用"))
|
print(GroupBotManager.handle_command(group_id, "ROBOT-启用"))
|
||||||
@@ -248,4 +248,4 @@ def simulate_commands():
|
|||||||
|
|
||||||
|
|
||||||
# 执行模拟命令
|
# 执行模拟命令
|
||||||
# simulate_commands()
|
simulate_commands()
|
||||||
|
|||||||
Reference in New Issue
Block a user