mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 20:01:04 +00:00
fix(template/simple): 纠正 simple 符合规范
This commit is contained in:
@@ -24,36 +24,41 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>群聊日报 - {{ current_date }}</h1>
|
||||
<h1>群聊日报 - {{current_date}}</h1>
|
||||
|
||||
<div class="section">
|
||||
<h2>基础统计</h2>
|
||||
<p>消息数: {{ message_count }}</p>
|
||||
<p>参与人数: {{ participant_count }}</p>
|
||||
<p>消息数: {{message_count}}</p>
|
||||
<p>参与人数: {{participant_count}}</p>
|
||||
<p>总字符数: {{total_characters}}</p>
|
||||
<p>表情数: {{emoji_count}}</p>
|
||||
<p>最活跃时段: {{most_active_period}}</p>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>活跃度图表</h2>
|
||||
{{ hourly_chart_html }}
|
||||
{{hourly_chart_html}}
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>热门话题</h2>
|
||||
{{ topics_html }}
|
||||
{{topics_html}}
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>群友称号</h2>
|
||||
{{ titles_html }}
|
||||
{{titles_html}}
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>群圣经</h2>
|
||||
{{ quotes_html }}
|
||||
{{quotes_html}}
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
Generated by AstrBot
|
||||
Generated by AstrBot | {{current_datetime}}
|
||||
<br>
|
||||
<small>Token Usage: {{total_tokens}} (Prompt: {{prompt_tokens}}, Completion: {{completion_tokens}})</small>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Simple PDF Report</title>
|
||||
<title>Simple Report</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
@@ -14,7 +14,6 @@
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid #ccc;
|
||||
padding: 10px;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
h1,
|
||||
@@ -25,36 +24,41 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>群聊日报 (PDF) - {{ current_date }}</h1>
|
||||
<h1>群聊日报 - {{current_date}}</h1>
|
||||
|
||||
<div class="section">
|
||||
<h2>基础统计</h2>
|
||||
<p>消息数: {{ message_count }}</p>
|
||||
<p>参与人数: {{ participant_count }}</p>
|
||||
<p>消息数: {{message_count}}</p>
|
||||
<p>参与人数: {{participant_count}}</p>
|
||||
<p>总字符数: {{total_characters}}</p>
|
||||
<p>表情数: {{emoji_count}}</p>
|
||||
<p>最活跃时段: {{most_active_period}}</p>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>活跃度图表</h2>
|
||||
{{ hourly_chart_html }}
|
||||
{{hourly_chart_html}}
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>热门话题</h2>
|
||||
{{ topics_html }}
|
||||
{{topics_html}}
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>群友称号</h2>
|
||||
{{ titles_html }}
|
||||
{{titles_html}}
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>群圣经</h2>
|
||||
{{ quotes_html }}
|
||||
{{quotes_html}}
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
Generated by AstrBot
|
||||
Generated by AstrBot | {{current_datetime}}
|
||||
<br>
|
||||
<small>Token Usage: {{total_tokens}} (Prompt: {{prompt_tokens}}, Completion: {{completion_tokens}})</small>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{% for quote in quotes %}
|
||||
<div style="margin-bottom: 10px; padding: 10px; background: #f9f9f9; border-left: 3px solid #ccc;">
|
||||
<p style="font-style: italic; margin: 0;">"{{ quote.content }}"</p>
|
||||
<div style="text-align: right; font-size: 0.8em; margin-top: 5px;">
|
||||
— {{ quote.sender_nickname }}
|
||||
— {{ quote.sender }}
|
||||
</div>
|
||||
<div style="text-align: right; font-size: 0.7em; color: #888;">
|
||||
入选理由: {{ quote.reason }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
@@ -1,5 +1,7 @@
|
||||
{% for item in topics %}
|
||||
<div style="margin-bottom: 10px; border-bottom: 1px dashed #ccc; padding-bottom: 5px;">
|
||||
<strong>#{{ loop.index }} {{ topic.keyword }}</strong>
|
||||
<span style="color: #666; font-size: 0.8em;">(热度: {{ topic.count }})</span>
|
||||
<p style="margin: 5px 0;">{{ topic.summary }}</p>
|
||||
</div>
|
||||
<strong>#{{ item.index }} {{ item.topic.topic }}</strong>
|
||||
<span style="color: #666; font-size: 0.8em;">(参与者: {{ item.contributors }})</span>
|
||||
<p style="margin: 5px 0;">{{ item.topic.detail }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
@@ -1,9 +1,8 @@
|
||||
{% for item in titles %}
|
||||
<div style="margin-bottom: 10px; border: 1px solid #eee; padding: 5px;">
|
||||
<div style="font-weight: bold;">{{ user.nickname }} ({{ user.user_id }})</div>
|
||||
<div>称号:
|
||||
{% for title in user.titles %}
|
||||
<span style="background: #eee; padding: 2px 5px; border-radius: 3px;">{{ title }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div style="font-size: 0.9em; color: #555;">{{ user.description }}</div>
|
||||
</div>
|
||||
<div style="font-weight: bold;">{{ item.name }} - {{ item.title }}</div>
|
||||
<div style="font-size: 0.8em; background: #eee; display: inline-block; padding: 2px 5px; border-radius: 3px;">{{
|
||||
item.mbti }}</div>
|
||||
<div style="font-size: 0.9em; color: #555; margin-top: 5px;">{{ item.reason }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user