Files
chatrebot_aireply_plug/config/openclawbridge/config.toml
Claw 8c4c5074f2 重构为 openclaw_bridge 模板插件
- 将 process.py 替换为 OpenClaw Gateway QQ AI Reply 插件
- 新增 config/openclawbridge/config.toml(SDK 标准路径)
- 遵循 SDK 官方配置方式,移除硬编码默认值
- 内置高危词检测、管理员白名单、MC指令过滤
- 完善的 README.md 文档(使用说明+架构图+安全特性)
- packup.sh 增加『必须在目标主机打包』警告
- 保留 SDK 框架文件(plugin_modules.py, file_store_api.py 等)
- 更新 test.py 适配 openclaw_bridge 测试

注意:打包必须在目标主机执行,避免 C 扩展兼容性问题
2026-05-04 16:14:42 +08:00

29 lines
969 B
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.

[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"