Files
qqbot/upgrade-and-run.sh
rianli 50422aac14 feat(qqbot): 流式消息输出与架构重构
**流式消息**
- 新增 StreamSender 类,支持流式消息分片发送
- 实现消息队列异步处理,防止阻塞心跳
- 支持 C2C/Group 流式消息

**架构重构**
- 移除 clawdbot/moltbot 旧配置,统一为 qqbot
- 新增 upgrade-and-run.sh 一键升级脚本
- 重构 api/channel/gateway/outbound 模块
- 新增富媒体消息发送接口
2026-02-02 20:25:06 +08:00

42 lines
1003 B
Bash
Executable File
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.
#!/bin/bash
# QQBot 一键更新并启动脚本
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
echo "========================================="
echo " QQBot 一键更新启动脚本"
echo "========================================="
# 1. 移除老版本
echo ""
echo "[1/4] 移除老版本..."
if [ -f "./scripts/upgrade.sh" ]; then
bash ./scripts/upgrade.sh
else
echo "警告: upgrade.sh 不存在,跳过移除步骤"
fi
# 2. 安装当前版本
echo ""
echo "[2/4] 安装当前版本..."
openclaw plugins install .
# 3. 配置机器人通道
echo ""
echo "[3/4] 配置机器人通道..."
# 默认 token可通过环境变量 QQBOT_TOKEN 覆盖
QQBOT_TOKEN="${QQBOT_TOKEN:-xxx:xxx}"
openclaw channels add --channel qqbot --token "$QQBOT_TOKEN"
# 启用 markdown 支持
openclaw config set channels.qqbot.markdownSupport true
# 4. 启动 openclaw
echo ""
echo "[4/4] 启动 openclaw..."
echo "========================================="
openclaw gateway --verbose