From a52a9afa4f50f8beb762b17b331caac449826cc7 Mon Sep 17 00:00:00 2001 From: clown145 Date: Sat, 3 Jan 2026 01:04:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=9E=E9=80=80=E5=AF=B9=E7=BE=A4?= =?UTF-8?q?=E5=88=86=E6=9E=90=E6=8C=87=E4=BB=A4=E7=9A=84=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +-- main.py | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2a3456..bb32d4c 100644 --- a/README.md +++ b/README.md @@ -112,9 +112,8 @@ retro_futurism 模板效果图 📋 点击展开查看完整更新日志 ### v4.5.2 -- 新增 `/查看模板` 指令,可查看所有模板预览图 +- 新增 `/查看模板` 指令,以合并转发消息形式查看所有模板预览图 - `/设置模板` 指令现支持通过序号设置模板 -- `/群分析` 指令现可在任意群使用,无需先启用该群 ### v4.5.1 - BugFix diff --git a/main.py b/main.py index b99577f..9a1aa76 100644 --- a/main.py +++ b/main.py @@ -158,6 +158,11 @@ class QQGroupDailyAnalysis(Star): # 更新bot实例(用于手动命令) bot_manager.update_from_event(event) + # 检查群组权限 + if not config_manager.is_group_allowed(group_id): + yield event.plain_result("❌ 此群未启用日常分析功能") + return + # 设置分析天数 analysis_days = ( days if days and 1 <= days <= 7 else config_manager.get_analysis_days()