优化一下总结布局

This commit is contained in:
liuwei
2026-04-13 09:35:29 +08:00
parent 0f0acc1729
commit 8ccf96d6de

View File

@@ -530,13 +530,9 @@ class MessageSummaryPlugin(MessagePluginInterface):
section_lines = [
"## 群概览",
f"- 总统计条目数:{int(stats.get('total_count') or 0)}",
f"- 参与人数:{int(stats.get('participant_count') or 0)}",
f"- 文本消息:{int(stats.get('text_count') or 0)}",
f"- 图片消息:{int(stats.get('image_count') or 0)}",
f"- 视频消息:{int(stats.get('video_count') or 0)}",
f"- 链接消息:{int(stats.get('link_count') or 0)}",
f"- 表情消息:{int(stats.get('emoji_count') or 0)}",
f"- 📊 总:{int(stats.get('total_count') or 0)} 👥 人:{int(stats.get('participant_count') or 0)}\n"
f"- 💬 文:{int(stats.get('text_count') or 0)} 🖼 图:{int(stats.get('image_count') or 0)} 🎬 视:{int(stats.get('video_count') or 0)}\n"
f"- 🔗 链:{int(stats.get('link_count') or 0)} 😄 表:{int(stats.get('emoji_count') or 0)}"
]
section = "\n".join(section_lines)
return f"{section}\n\n{summary.strip()}"