Mrs4s/go-cqhttp 和SK-415/HarukaBot的Docker启动环境
docker compose:
version: '3'
services:
qqbot:
restart: always
volumes:
- ./cqdata:/cqdata
- ./haruka_bot:/haruka_bot
image: 'fall2wish/harukabot_gocq:latest'
首次启动后
docker exec -it qqbot /bin/bash
/cqdata/go-cqhttp
输入3(使用反代服务)后关闭docker。 更改/cqdata内的config.yml,
参考go-cqhttp 帮助中心和Haruka-Bot文档-安装 go-cqhttp部分
##示例
account:
uin: 1233456 # 机器人QQ账号
servers:
- ws-reverse:
universal: ws://127.0.0.1:8080/onebot/v11/ws
重新启动docker,进入容器
docker exec -it qqbot /bin/bash
cd /cqdata
/app/go-cqhttp
按提示登录后可正常使用
#感谢: