[plugin] name = "openclaw_bridge" version = "1.0.0" # qqrebot 插件框架测试用 [test] message = "openclaw_bridge_loaded" # ── 核心配置(使用前必须修改) ────────────────────────── # 克隆本仓库后,将此文件放在 config/openclawbridge/config.toml # 或在目标主机上打包后首次加载插件时会生成此路径 [openclaw] # OpenClaw Gateway 地址 # 如果使用同机部署的 OpenClaw,默认 http://127.0.0.1:18789 gateway_url = "http://127.0.0.1:18789" # Gateway 认证 Token(必填!从 OpenClaw 配置中获取) gateway_token = "your_gateway_token_here" # 管理员 QQ 号(唯一可发敏感指令、不受 MC 指令过滤限制) allowed_sender = "your_admin_qq" # 要调用的 agent 模型 ID # 默认:openclaw/qq-agent(对应 qq-agent 配置) model = "openclaw/qq-agent" # Agent ID(与 OpenClaw 配置中 agent id 一致) agent_id = "qq-agent" # ── 安全配置 ────────────────────────────────────────── # HIGH_RISK_WORDS 也可以在此配置,内容较多时建议放外部文件 # 如不配置则使用 process.py 中的内置默认词库 # [security] # high_risk_words = ["word1", "word2", ...]