feat: 回退对群分析指令的更改

This commit is contained in:
clown145
2026-01-03 01:24:51 +08:00
committed by Helian Nuits
parent 92142b4b9f
commit a52a9afa4f
2 changed files with 6 additions and 2 deletions
+1 -2
View File
@@ -112,9 +112,8 @@ retro_futurism 模板效果图
<summary>📋 点击展开查看完整更新日志</summary>
### v4.5.2
- 新增 `/查看模板` 指令,查看所有模板预览图
- 新增 `/查看模板` 指令,以合并转发消息形式查看所有模板预览图
- `/设置模板` 指令现支持通过序号设置模板
- `/群分析` 指令现可在任意群使用,无需先启用该群
### v4.5.1
- BugFix
+5
View File
@@ -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()