菜单还是支持群里发送。

This commit is contained in:
liuwei
2025-04-17 13:43:09 +08:00
parent 07f5c853e7
commit 2a61b2d48f
2 changed files with 4 additions and 4 deletions

View File

@@ -237,7 +237,7 @@ class Robot(Job):
rsp = self.gbm.handle_command(msg.roomid, msg.content)
# 不在群里发送,防止被骚扰
if rsp is not None:
self.send_text_msg(rsp, msg.sender)
self.send_text_msg(rsp, msg.roomid, msg.sender)
return
except Exception as e:
self.LOG.error(f"revoke_receive_message error: {e}")

View File

@@ -148,7 +148,7 @@ class GroupBotManager:
# 如果是MENU指令返回功能列表
if command_str.strip().upper() == "菜单":
return f"群ID{group_id} \n {GroupBotManager.display_menu_status(group_id)}"
return f"群ID{group_id} \n {GroupBotManager.get_enabled_features(group_id)}"
# 如果是MENU-STATUS指令返回功能列表及其状态
if command_str.strip().upper() == "菜单状态":