Update start_openclaw.sh
Browse files- start_openclaw.sh +5 -13
start_openclaw.sh
CHANGED
|
@@ -8,7 +8,7 @@ mkdir -p /root/.openclaw/credentials
|
|
| 8 |
mkdir -p /root/.openclaw/sessions
|
| 9 |
|
| 10 |
# 2. 执行恢复
|
| 11 |
-
python3 /app/sync.py restore
|
| 12 |
|
| 13 |
# 3. 处理 API 地址
|
| 14 |
CLEAN_BASE=$(echo "$OPENAI_API_BASE" | sed "s|/chat/completions||g" | sed "s|/v1/|/v1|g" | sed "s|/v1$|/v1|g")
|
|
@@ -70,26 +70,18 @@ cat > /root/.openclaw/openclaw.json <<EOF
|
|
| 70 |
}
|
| 71 |
},
|
| 72 |
"channels": {
|
| 73 |
-
"
|
| 74 |
"enabled": true,
|
| 75 |
-
"
|
| 76 |
"groupPolicy": "open",
|
| 77 |
-
"
|
| 78 |
-
"accounts": {
|
| 79 |
-
"main": {
|
| 80 |
-
"appId": "$FEISHU_APP_ID",
|
| 81 |
-
"appSecret": "$FEISHU_APP_SECRET",
|
| 82 |
-
"botName": "OpenClaw AI",
|
| 83 |
-
"encryptKey": "$FEISHU_ENCRYPT_KEY"
|
| 84 |
-
}
|
| 85 |
-
}
|
| 86 |
}
|
| 87 |
}
|
| 88 |
}
|
| 89 |
EOF
|
| 90 |
|
| 91 |
# 5. 启动定时备份 (每 1 小时)
|
| 92 |
-
(while true; do sleep 3600; python3 /app/sync.py backup; done) &
|
| 93 |
|
| 94 |
# 6. 运行
|
| 95 |
openclaw doctor --fix
|
|
|
|
| 8 |
mkdir -p /root/.openclaw/sessions
|
| 9 |
|
| 10 |
# 2. 执行恢复
|
| 11 |
+
# python3 /app/sync.py restore
|
| 12 |
|
| 13 |
# 3. 处理 API 地址
|
| 14 |
CLEAN_BASE=$(echo "$OPENAI_API_BASE" | sed "s|/chat/completions||g" | sed "s|/v1/|/v1|g" | sed "s|/v1$|/v1|g")
|
|
|
|
| 70 |
}
|
| 71 |
},
|
| 72 |
"channels": {
|
| 73 |
+
"discord": {
|
| 74 |
"enabled": true,
|
| 75 |
+
"token": "MTQ4NTIxODMyMTgwMzY0MDg5Mg.Gn_t6B.Z-EGHzaNih3GSsDFr86yCzINfKG-WVCfsjmBAc",
|
| 76 |
"groupPolicy": "open",
|
| 77 |
+
"streaming": "off"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
}
|
| 79 |
}
|
| 80 |
}
|
| 81 |
EOF
|
| 82 |
|
| 83 |
# 5. 启动定时备份 (每 1 小时)
|
| 84 |
+
# (while true; do sleep 3600; python3 /app/sync.py backup; done) &
|
| 85 |
|
| 86 |
# 6. 运行
|
| 87 |
openclaw doctor --fix
|