diff --git a/README.md b/README.md index a79cb1d..dd40cf6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # QQ群日常分析插件 -[![Plugin Version](https://img.shields.io/badge/Latest_Version-v3.9.5-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-v4.0.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) [![](https://img.shields.io/badge/五彩斑斓的Bug群-Bug反馈群&水群-white?style=for-the-badge&color=76bad9&logo=qq&logoColor=76bad9)](https://qm.qq.com/q/oTzIrdDBIc) @@ -97,6 +97,9 @@ _✨ 一个基于AstrBot的智能群聊分析插件,能够生成精美的群
📋 点击展开查看完整更新日志 +### v4.0.0 +- feat(report/template): 全新设计的报告模板,采用卡通手账日记风格设计,灵感来源于 GalGame 《五彩斑斓的世界》女主二阶堂真红和男主悠马每天晚上写日记的场景 + ### v3.9.5 - fix(report/template): 迁移到应该使用的 jinja2 模板引擎, HTML 文件方便调试和修改 @@ -119,8 +122,6 @@ _✨ 一个基于AstrBot的智能群聊分析插件,能够生成精美的群 4. 回退到第一个可用的 Provider - - ### v3.6.0 - 由于 napcat 存在的问题 [NapNeko/NapCatQQ#441](https://github.com/NapNeko/NapCatQQ/issues/441) 选择取消分页拉取和多次轮询获取逻辑,解决获取消息数量异常的情况 @exynos967 diff --git a/assets/demo.jpg b/assets/demo.jpg index 1ea41e8..d39dad7 100644 Binary files a/assets/demo.jpg and b/assets/demo.jpg differ diff --git a/metadata.yaml b/metadata.yaml index c0f0edf..4dee5e6 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -14,6 +14,6 @@ help: | # 插件的帮助信息 命令: /群分析 [天数] - 分析群聊活动 /分析设置 [操作] - 管理设置(enable/disable/status/test) -version: v3.9.5 # 插件版本号。格式:v1.1.1 或者 v1.1 +version: v4.0.0 # 插件版本号。格式:v1.1.1 或者 v1.1 author: SXP-Simon # 作者 repo: https://github.com/SXP-Simon/astrbot-qq-group-daily-analysis # 插件的仓库地址 diff --git a/src/reports/templates/image_template.html b/src/reports/templates/image_template.html index cffe817..4bc85a2 100644 --- a/src/reports/templates/image_template.html +++ b/src/reports/templates/image_template.html @@ -3,582 +3,518 @@ - 群聊日常分析报告 - + 五彩斑斓的一天,来看看群里发生了什么吧! · {{current_date}} + + + + +
+ +
-

📊 群聊日常分析报告

-
{{current_date}}
+
+
+

五彩斑斓的一天,来看看群里发生了什么吧!

+
{{current_date}}
+
-
-
-

📈 基础统计

-
-
{{message_count}}
消息总数
-
{{participant_count}}
参与人数
-
{{total_characters}}
总字符数
-
{{emoji_count}}
表情数量
-
-
-
{{most_active_period}}
-
最活跃时段
+ + +
+ +
+
+
+
+ + +
{{message_count}}
+
消息总数
+
+
+
+
+ + +
{{participant_count}}
+
参与人数
+
+
+
+
+ + +
{{emoji_count}}
+
表情统计
+
+
+
+
+ + +
{{total_characters}}
+
总字符数
+
+
- -
-
-
-
⏱️ 24小时活跃度分布
-
+ +
+
+
✨ Highlight Time
+
{{most_active_period}}
+
(此刻,世界色彩斑斓)
+
+
+ +
+ + +
+
+
+ + 24H 活跃轨迹 +
+
+ {{hourly_chart_html}}
- {{hourly_chart_html}}
-
-

💬 热门话题

-
{{topics_html}}
+ + +
+
+
+
+
+
+
+ + 今日话题 Topics +
+ {{topics_html}}
-
-

🏆 群友称号

-
{{titles_html}}
+ + +
+
+ + 群友画像 Portraits +
+
+ {{titles_html}} +
-
-

💬 群圣经

+ + +
+
+ + 群贤毕至 Bible Quotes +
{{quotes_html}}
+
+ + +
\ No newline at end of file diff --git a/src/reports/templates/pdf_template.html b/src/reports/templates/pdf_template.html index 23ebbbf..3e0acde 100644 --- a/src/reports/templates/pdf_template.html +++ b/src/reports/templates/pdf_template.html @@ -3,442 +3,518 @@ - 群聊日常分析报告 + 五彩斑斓的一天,来看看群里发生了什么吧! · {{current_date}} + + + + + -
+ +
-

📊 群聊日常分析报告

-
{{current_date}}
-
-
-

📈 基础统计

-
-
-
{{message_count}}
-
消息总数
-
-
-
{{participant_count}}
-
参与人数
-
-
-
{{total_characters}}
-
总字符数
-
-
-
{{emoji_count}}
-
表情数量
-
-
-
-
{{most_active_period}}
-
最活跃时段
-
- -
-
-
⏱️ 活跃度分布
-
- {{hourly_chart_html}} +
+
+

五彩斑斓的一天,来看看群里发生了什么吧!

+
{{current_date}}
-
-

💬 热门话题

- {{topics_html}} + +
+ +
+
+
+
+ + +
{{message_count}}
+
消息总数
+
+
+
+
+ + +
{{participant_count}}
+
参与人数
+
+
+
+
+ + +
{{emoji_count}}
+
表情统计
+
+
+
+
+ + +
{{total_characters}}
+
总字符数
+
+
+
+
+ + +
+
+
✨ Highlight Time
+
{{most_active_period}}
+
(此刻,世界色彩斑斓)
+
-
-

🏆 群友称号

- {{titles_html}} -
-
-

💬 群圣经

- {{quotes_html}} + +
+ + +
+
+
+ + 24H 活跃轨迹 +
+
+ {{hourly_chart_html}} +
+
+ + +
+
+
+
+
+
+
+ + 今日话题 Topics +
+ {{topics_html}} +
+ + +
+
+ + 群友画像 Portraits +
+
+ {{titles_html}} +
+
+ + +
+
+ + 群贤毕至 Bible Quotes +
+ {{quotes_html}} +
+
+ + +
- \ No newline at end of file diff --git a/src/reports/templates/quote_item.html b/src/reports/templates/quote_item.html index 72bb43a..a49ebb4 100644 --- a/src/reports/templates/quote_item.html +++ b/src/reports/templates/quote_item.html @@ -1,7 +1,13 @@ {% for quote in quotes %} -
-
"{{ quote.content }}"
-
—— {{ quote.sender }}
-
{{ quote.reason }}
+
+
+
"
+
{{ quote.content }}
+
— {{ quote.sender }}
+
+
+ 🤖 AI 深度解析: + {{ quote.reason }} +
{% endfor %} \ No newline at end of file diff --git a/src/reports/templates/topic_item.html b/src/reports/templates/topic_item.html index d8ff7ad..b7e9cd2 100644 --- a/src/reports/templates/topic_item.html +++ b/src/reports/templates/topic_item.html @@ -1,10 +1,17 @@ {% for topic in topics %}
-
- {{ topic.index }} - {{ topic.topic.topic }} +
+
+
+
+
+ {{ topic.topic.topic }} + #{{ "%02d"|format(topic.index) }} +
+
+ 👥 {{ topic.contributors }} +
+
{{ topic.topic.detail }}
-
参与者: {{ topic.contributors }}
-
{{ topic.topic.detail }}
{% endfor %} \ No newline at end of file diff --git a/src/reports/templates/user_title_item.html b/src/reports/templates/user_title_item.html index 0a3a4fe..da25f33 100644 --- a/src/reports/templates/user_title_item.html +++ b/src/reports/templates/user_title_item.html @@ -1,19 +1,24 @@ {% for title in titles %} -
-