mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 20:01:04 +00:00
feat: 回退对群分析指令的更改
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user