2020-09-10 09:29:27 +00:00
|
|
|
<!--
|
|
|
|
* @Author : yanyongyu
|
|
|
|
* @Date : 2020-09-10 17:11:45
|
|
|
|
* @LastEditors : yanyongyu
|
2021-06-10 15:45:32 +00:00
|
|
|
* @LastEditTime : 2021-06-10 23:34:41
|
2020-09-10 09:29:27 +00:00
|
|
|
* @Description : README
|
|
|
|
* @GitHub : https://github.com/yanyongyu
|
|
|
|
-->
|
|
|
|
|
2020-09-10 08:59:32 +00:00
|
|
|
# QQ-GitHub-Bot
|
2020-09-10 09:29:27 +00:00
|
|
|
|
|
|
|
![Python Version](https://img.shields.io/badge/python-3.7+-blue.svg)
|
|
|
|
![NoneBot Version](https://img.shields.io/badge/nonebot-2+-red.svg)
|
|
|
|
![CQHTTP Version](https://img.shields.io/badge/cqhttp-11+-black.svg)
|
|
|
|
|
2020-09-10 08:59:32 +00:00
|
|
|
GitHub Bot for QQ
|
2020-09-10 09:29:27 +00:00
|
|
|
|
|
|
|
## 简介
|
|
|
|
|
2021-04-02 07:34:05 +00:00
|
|
|
在 QQ 内 **订阅**, **查看**, **处理** GitHub Issue and Pull Request 。
|
|
|
|
|
|
|
|
## 配置
|
|
|
|
|
2021-06-10 15:45:32 +00:00
|
|
|
配置项参考 [.env 文件](./.env),部分选项为可选。
|
|
|
|
|
|
|
|
在项目目录下创建 `.env.prod` 文件以覆盖默认 `.env` 配置,配置项留空将会从环境变量寻找。
|
2021-04-02 07:34:05 +00:00
|
|
|
|
|
|
|
## 部署
|
|
|
|
|
2021-05-06 16:28:50 +00:00
|
|
|
部署 `QQ-GitHub-Bot` 前,需要先行部署 [go-cqhttp](https://github.com/Mrs4s/go-cqhttp) 并配置连接。
|
|
|
|
配置连接的方法参考 `nonebot2` 文档: [配置协议端](https://v2.nonebot.dev/guide/cqhttp-guide.html#%E9%85%8D%E7%BD%AE-cqhttp-%E5%8D%8F%E8%AE%AE%E7%AB%AF-%E4%BB%A5-qq-%E4%B8%BA%E4%BE%8B)
|
|
|
|
|
2021-04-02 07:34:05 +00:00
|
|
|
1. 使用 `nb-cli`
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip install nb-cli[deploy]
|
|
|
|
nb build
|
|
|
|
nb up
|
|
|
|
```
|
|
|
|
|
|
|
|
2. 使用 `docker-compose`
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose up -d
|
|
|
|
```
|