新增通用HTML模板渲染器并将机器人菜单改为模板驱动输出

This commit is contained in:
liuwei
2026-04-20 13:12:44 +08:00
parent cfb8af334b
commit f1a6f6d565
5 changed files with 327 additions and 245 deletions

View File

@@ -12,6 +12,9 @@ image_fallback_to_text = false
# md2image 渲染参数:可按服务器性能调整
image_render_timeout_seconds = 45
image_render_retries = 1
# 菜单图片 HTML 模板路径(相对仓库根目录)
# 后续 UI 改版只需要改模板文件,无需改 Python 代码
image_template_path = "plugins/robot_menu/templates/menu_cards.html"
command-format = """
📝功能菜单指令:
菜单 - 显示功能菜单