From 63c7945c96481d3acf2fe9fe16f394ada2ecede7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9B=9E=E5=BD=92=E5=A4=A9=E7=A9=BA?= Date: Fri, 29 Aug 2025 23:19:24 +0800 Subject: [PATCH] =?UTF-8?q?[v1.4.0]=20(PDF=E5=AE=89=E8=A3=85=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E8=AF=B4=E6=98=8E=E6=9B=B4=E6=96=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PDF_功能说明.md | 22 ++-------------------- README.md | 5 ++++- _conf_schema.json | 2 +- main.py | 2 +- metadata.yaml | 2 +- 5 files changed, 9 insertions(+), 24 deletions(-) diff --git a/PDF_功能说明.md b/PDF_功能说明.md index c1ba9c7..189b2bb 100644 --- a/PDF_功能说明.md +++ b/PDF_功能说明.md @@ -23,6 +23,8 @@ /安装PDF ``` +提示: 首次使用命令安装,最后出现提示告诉你需要重启生效,是对的,需要重启 astrbot,而不是热重载插件。 + 此命令会自动: - 检查 pyppeteer 是否已安装 - 如未安装,自动安装 pyppeteer 库 @@ -68,26 +70,6 @@ pip install pyppeteer==1.0.2 /分析设置 status # 查看完整的插件状态 ``` -## 配置选项 - -在 `config.json` 中可以配置以下 PDF 相关选项: - -```json -{ - "output_format": "pdf", - "pdf_output_dir": "reports", - "pdf_filename_format": "群聊分析报告_{group_id}_{date}.pdf" -} -``` - -### 配置说明 - -- `output_format`: 输出格式,可选 "image"、"text"、"pdf" -- `pdf_output_dir`: PDF 文件保存目录 -- `pdf_filename_format`: PDF 文件名格式,支持以下占位符: - - `{group_id}`: 群组ID - - `{date}`: 日期(YYYYMMDD 格式) - ## PDF 报告内容 生成的 PDF 报告包含以下部分: diff --git a/README.md b/README.md index 87ce9d9..375070a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # QQ群日常分析插件 -[![Plugin Version](https://img.shields.io/badge/Latest_Version-v1.3.0-blue.svg?style=for-the-badge&color=76bad9)](https://github.com/SXP-Simon/astrbot-qq-group-daily-analysis) +[![Plugin Version](https://img.shields.io/badge/Latest_Version-v1.4.0-blue.svg?style=for-the-badge&color=76bad9)](https://github.com/SXP-Simon/astrbot-qq-group-daily-analysis) [![AstrBot](https://img.shields.io/badge/AstrBot-Plugin-ff69b4?style=for-the-badge)](https://github.com/AstrBotDevs/AstrBot) [![License](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](LICENSE) @@ -134,6 +134,9 @@ _✨ 一个基于AstrBot的智能群聊分析插件,能够生成精美的群 ### v1.3.0 - token 消耗情况说明 +### v1.4.0 +- PDF 版本情况说明更新 + ## 许可证 MIT License diff --git a/_conf_schema.json b/_conf_schema.json index b257ce5..7e9fe9d 100644 --- a/_conf_schema.json +++ b/_conf_schema.json @@ -36,7 +36,7 @@ "type": "string", "description": "输出格式", "default": "image", - "hint": "分析报告的输出格式:image(图片)、text(文本)、pdf(PDF文件)" + "hint": "分析报告的输出格式:image(图片)、text(文本)、pdf(PDF文件)。使用 PDF 需要额外配置,根据文件中的 PDF_功能说明.md 进行配置" }, "min_messages_threshold": { diff --git a/main.py b/main.py index c977c3c..1ae961b 100644 --- a/main.py +++ b/main.py @@ -143,7 +143,7 @@ class GroupStatistics: "astrbot_qq_group_daily_analysis", "SXP-Simon", "QQ群日常分析插件 - 生成精美的群聊日常分析报告", - "1.3.0", + "1.4.0", "https://github.com/SXP-Simon/astrbot-qq-group-daily-analysis" ) class QQGroupDailyAnalysis(Star): diff --git a/metadata.yaml b/metadata.yaml index 2754224..5ba5fcc 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -13,6 +13,6 @@ help: | # 插件的帮助信息 命令: /群分析 [天数] - 分析群聊活动 /分析设置 [操作] - 管理设置(enable/disable/status/test) -version: v1.3.0 # 插件版本号。格式:v1.1.1 或者 v1.1 +version: v1.4.0 # 插件版本号。格式:v1.1.1 或者 v1.1 author: SXP-Simon # 作者 repo: https://github.com/SXP-Simon/astrbot-qq-group-daily-analysis # 插件的仓库地址 \ No newline at end of file