mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 13:38:43 +00:00
[v4.9.15] - fix: 发送假超时不应该导致上传群相册群文件失败,删除 PDF 模块和相关的功能
This commit is contained in:
+6
-6
@@ -1,11 +1,6 @@
|
||||
# 更新日志 (CHANGELOG)
|
||||
|
||||
## [v4.9.14] - feat(persona): 分析器人格增强和使用体验优化,可视化选择人格配置
|
||||
* **🐛 黑白名单处理**: 修复插件在独立会话模式下无法识别群号白名单的问题 (#156)
|
||||
* **✨ 人格增强分析**: 分析器人格增强和使用体验优化,可视化选择人格配置
|
||||
* **🛠️ 健壮性增强**: 回退 (befcc2ad) 所有模板的强制桌面端视宽注入
|
||||
|
||||
|
||||
## [v4.9.15] - fix: 发送假超时不应该导致上传群相册群文件失败,删除 PDF 模块和相关的功能
|
||||
|
||||
|
||||
---
|
||||
@@ -13,6 +8,11 @@
|
||||
<details>
|
||||
<summary>📋 点击查看历史更新日志</summary>
|
||||
|
||||
## [v4.9.14] - feat(persona): 分析器人格增强和使用体验优化,可视化选择人格配置
|
||||
* **🐛 黑白名单处理**: 修复插件在独立会话模式下无法识别群号白名单的问题 (#156)
|
||||
* **✨ 人格增强分析**: 分析器人格增强和使用体验优化,可视化选择人格配置
|
||||
* **🛠️ 健壮性增强**: 回退 (befcc2ad) 所有模板的强制桌面端视宽注入
|
||||
|
||||
## [v4.9.13] - feat(ATRI): ATRI 模板 (@Liangyu-G)
|
||||
* **✨ 新模板 ATRI**: 感谢 @Liangyu-G 的贡献,新增了一个名为 ATRI 的模板,灵感来源于 ATRI 的可爱风格,适合喜欢二次元风格的用户使用。(“她太可爱了,就是太可爱了,那个剧情也特别好,但她真的太可爱了。在聊天的过程中,Soulter不止一次和我强调了亚托莉可爱这一点,甚至一度说不出其他话了”
|
||||
)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# 群聊日常分析插件
|
||||
|
||||
[](https://github.com/SXP-Simon/astrbot-qq-group-daily-analysis)
|
||||
[](https://github.com/SXP-Simon/astrbot-qq-group-daily-analysis)
|
||||
[](https://github.com/AstrBotDevs/AstrBot)
|
||||
[](LICENSE)
|
||||
[](https://deepwiki.com/SXP-Simon/astrbot_plugin_qq_group_daily_analysis)
|
||||
|
||||
@@ -672,13 +672,16 @@ class GroupDailyAnalysis(Star):
|
||||
format_display_names = {
|
||||
"image": "图片格式 (默认)",
|
||||
"text": "文本格式",
|
||||
"html": "交互式 HTML 网页"
|
||||
"html": "交互式 HTML 网页",
|
||||
}
|
||||
|
||||
if not format_input:
|
||||
current_format = self.config_manager.get_output_format()
|
||||
format_list_str = "\n".join(
|
||||
[f"【{i}】{f} - {format_display_names[f]}" for i, f in enumerate(available_formats, start=1)]
|
||||
[
|
||||
f"【{i}】{f} - {format_display_names[f]}"
|
||||
for i, f in enumerate(available_formats, start=1)
|
||||
]
|
||||
)
|
||||
yield event.plain_result(f"""📊 当前输出格式: {current_format}
|
||||
|
||||
@@ -694,7 +697,7 @@ class GroupDailyAnalysis(Star):
|
||||
idx = int(format_input) - 1
|
||||
if 0 <= idx < len(available_formats):
|
||||
target_format = available_formats[idx]
|
||||
|
||||
|
||||
# 尝试按名称选择
|
||||
if not target_format:
|
||||
input_lower = format_input.lower()
|
||||
@@ -702,7 +705,9 @@ class GroupDailyAnalysis(Star):
|
||||
target_format = input_lower
|
||||
|
||||
if not target_format:
|
||||
yield event.plain_result(f"❌ 无效的格式类型 '{format_input}'。可用: {', '.join(available_formats)} 或序号 1-{len(available_formats)}")
|
||||
yield event.plain_result(
|
||||
f"❌ 无效的格式类型 '{format_input}'。可用: {', '.join(available_formats)} 或序号 1-{len(available_formats)}"
|
||||
)
|
||||
return
|
||||
|
||||
try:
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
name: astrbot_plugin_qq_group_daily_analysis # 这是你的插件的唯一识别名。
|
||||
display_name: 群分析总结插件 # 插件的显示名称
|
||||
desc: "[多平台接入开发中] 群日常分析总结插件 - 支持 QQ (aiocqhttp)、Telegram、Discord 以及 Feishu (Lark);生成精美的群聊分析报告,支持话题分析、用户形象、群聊圣经等功能" # 插件简短描述
|
||||
version: v4.9.14 # 插件版本号。格式:v1.1.1 或者 v1.1
|
||||
version: v4.9.15 # 插件版本号。格式:v1.1.1 或者 v1.1
|
||||
author: SXP-Simon # 作者
|
||||
astrbot_version: ">=4.16.0"
|
||||
support_platforms:
|
||||
|
||||
@@ -431,8 +431,10 @@ class ConfigManager:
|
||||
"""设置输出格式"""
|
||||
valid_formats = ["image", "text", "html"]
|
||||
if format_type.lower() not in valid_formats:
|
||||
raise ValueError(f"无效的输出格式: {format_type}。有效选项: {valid_formats}")
|
||||
|
||||
raise ValueError(
|
||||
f"无效的输出格式: {format_type}。有效选项: {valid_formats}"
|
||||
)
|
||||
|
||||
self._ensure_group("basic")["output_format"] = format_type.lower()
|
||||
self.config.save_config()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user