mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 20:01:04 +00:00
fix(output_format): 改为 options 形式处理,提升用户体验
This commit is contained in:
@@ -429,7 +429,11 @@ class ConfigManager:
|
||||
|
||||
def set_output_format(self, format_type: str):
|
||||
"""设置输出格式"""
|
||||
self._ensure_group("basic")["output_format"] = format_type
|
||||
valid_formats = ["image", "text", "html"]
|
||||
if format_type.lower() not in valid_formats:
|
||||
raise ValueError(f"无效的输出格式: {format_type}。有效选项: {valid_formats}")
|
||||
|
||||
self._ensure_group("basic")["output_format"] = format_type.lower()
|
||||
self.config.save_config()
|
||||
|
||||
def set_group_list_mode(self, mode: str):
|
||||
|
||||
Reference in New Issue
Block a user