Files
qqbot/upgrade-and-run.sh
rianli 918b419fc9 feat(qqbot): 图片收发功能与定时提醒优化
**图片功能**
- 支持接收用户发送的图片消息(自动下载到临时目录)
- 支持发送本地文件路径(自动读取转为 Base64)
- 富媒体消息接口(sendC2CImageMessage/sendGroupImageMessage)
- 图片本地代理服务(解决 QQ 图片 URL 直接访问限制)

**消息格式**
- 默认启用 Markdown 消息格式

**定时提醒优化**
- 修复 cron 提醒:移除无效 --system-prompt 参数,改用 --message 直接输出提醒内容
- 精简用户交互话术,避免冗长回复

**代码清理**
- 移除过时的流式消息处理代码
- 优化 gateway/outbound/channel 模块结构
2026-02-02 20:36:09 +08:00

42 lines
1008 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:-appid:secret}"
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