Update start-openclaw.sh
Browse files- start-openclaw.sh +5 -5
start-openclaw.sh
CHANGED
|
@@ -130,20 +130,20 @@ echo "🔧 执行 openclaw doctor --fix ..."
|
|
| 130 |
openclaw doctor --fix || true
|
| 131 |
|
| 132 |
# ================================================
|
| 133 |
-
# 7. 创建独立微信 Agent 并强制绑定
|
| 134 |
# ================================================
|
| 135 |
-
echo "🔧 创建独立微信 Agent 并强制绑定(
|
| 136 |
|
| 137 |
# 创建独立 Agent
|
| 138 |
openclaw agents add wechat-agent --workspace /root/.openclaw/agents/wechat-agent --non-interactive || true
|
| 139 |
|
| 140 |
-
# 强制
|
| 141 |
openclaw config set --json bindings '[{"agentId":"wechat-agent","match":{"channel":"openclaw-weixin"}}]' || true
|
| 142 |
|
| 143 |
-
# 保险
|
| 144 |
openclaw config set channels.openclaw-weixin.defaultAgent "wechat-agent" || true
|
| 145 |
|
| 146 |
-
echo "✅ 微信绑定
|
| 147 |
|
| 148 |
# ================================================
|
| 149 |
# 8. 启动定时备份
|
|
|
|
| 130 |
openclaw doctor --fix || true
|
| 131 |
|
| 132 |
# ================================================
|
| 133 |
+
# 7. 创建独立微信 Agent 并强制绑定(最强版本)
|
| 134 |
# ================================================
|
| 135 |
+
echo "🔧 创建独立微信 Agent 并强制绑定(所有微信消息走独立会话)..."
|
| 136 |
|
| 137 |
# 创建独立 Agent
|
| 138 |
openclaw agents add wechat-agent --workspace /root/.openclaw/agents/wechat-agent --non-interactive || true
|
| 139 |
|
| 140 |
+
# 强制路由:任何来自 openclaw-weixin 通道的消息都使用 wechat-agent
|
| 141 |
openclaw config set --json bindings '[{"agentId":"wechat-agent","match":{"channel":"openclaw-weixin"}}]' || true
|
| 142 |
|
| 143 |
+
# 额外保险配置
|
| 144 |
openclaw config set channels.openclaw-weixin.defaultAgent "wechat-agent" || true
|
| 145 |
|
| 146 |
+
echo "✅ 微信强制绑定完成(所有 openclaw-weixin 消息将路由到 wechat-agent)"
|
| 147 |
|
| 148 |
# ================================================
|
| 149 |
# 8. 启动定时备份
|