https://github.com/bpazy/cqbot
my coolq bot
https://github.com/bpazy/cqbot
Last synced: 3 months ago
JSON representation
my coolq bot
- Host: GitHub
- URL: https://github.com/bpazy/cqbot
- Owner: Bpazy
- Created: 2019-01-23T03:51:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T05:02:48.000Z (about 6 years ago)
- Last Synced: 2025-01-03T20:12:26.899Z (5 months ago)
- Language: Go
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cqbot
[](https://travis-ci.com/Bpazy/cqbot)
[](https://hub.docker.com/r/hanziyuan08/cqbot)[coolq-http-api](https://github.com/richardchien/coolq-http-api) is necessary.
## Usage
```
$ cqbot --help
```## Docker usage(recommend)
1. Get docker image
```shell
$ sudo docker pull coolq/wine-coolq
$ sudo docker pull hanziyuan08/cqbot
```
2. Create docker bridge network
```
$ sudo docker network create -d bridge coolq-net
```
3. Set up your configuration.
Make sure you have installed `io.github.richardchien.coolqhttpapi.cpk` under `app`.
Make sure you have added `coolqhttpapi general.json` under `data\app\io.github.richardchien.coolqhttpapi\config`.
```json
// general.json
{
"log_level": "debug",
"show_log_console": true,
"use_http": true,
"post_url": "http://cqbot:12345"
}
```
4. Start wine-coolq.
```shell
$ sudo docker run --name=coolq --rm -d -p 9000:9000 --network=coolq-net -v /home/han/coolq-data:/home/user/coolq -e VNC_PASSWD=your_vnc_password -e COOLQ_ACCOUNT=your_qq_number coolq/wine-coolq
```
5. Start Redis.
```shell
$ sudo docker run --name redis --rm -d --network coolq-net redis
```
6. Start cqbot.
```shell
$ sudo docker run --name cqbot --rm -d --network coolq-net hanziyuan08/cqbot -dns "user:password@tcp(localhost)/db_name" -redis "redis:6379"
```