Files
abot/plugins/robot_menu/config.toml

35 lines
1.3 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[RobotMenu]
enable = true
command = ["菜单", "功能菜单"]
# 菜单输出模式:
# - text发送文本菜单历史行为
# - image先用 md2image 将 Markdown 渲染为图片后发送
output_mode = "image"
# 图片生成失败时是否回退文本菜单:
# - false严格按图片模式不发送完整菜单文本
# - true优先保证可达失败后改发文本
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 = """
📝功能菜单指令:
菜单 - 显示功能菜单
菜单 状态 - 显示功能状态
菜单 群列表 - 显示所有启用机器人的群组
🔧管理员指令(需要管理员权限):
菜单 启用 序号 - 启用指定功能
菜单 关闭 序号 - 关闭指定功能
菜单 启用 功能名 - 启用指定功能
菜单 关闭 功能名 - 关闭指定功能
示例:
菜单 启用 1 - 启用群机器人(总开关)
菜单 关闭 2 - 关闭每日新闻播报
菜单 启用 PDF_CAPABILITY - 启用PDF能力
"""