Skip to content

Book-fall2wish/GoCQHTTP-DockerAction

 
 

Repository files navigation

Go-CQHTTP&HarukaBot Docker

Docker

Mrs4s/go-cqhttpSK-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

按提示登录后可正常使用

#感谢:

GitHub:Mrs4s/Go-CQHTTP

GitHub:sakarie9/Go-CQHTTP-Docker

GitHub:SK-415/HarukaBot

dockerhub:theinkstain/haruka-bot

About

Go-CQHTTP的Docker镜像

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 64.6%
  • Shell 35.4%