https://github.com/renovamen/antifood
深夜放毒反击系统(基于酷 Q 和 NoneBot)
https://github.com/renovamen/antifood
coolq nonebot
Last synced: 8 months ago
JSON representation
深夜放毒反击系统(基于酷 Q 和 NoneBot)
- Host: GitHub
- URL: https://github.com/renovamen/antifood
- Owner: Renovamen
- Created: 2020-01-11T13:28:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-11T13:28:58.000Z (almost 6 years ago)
- Last Synced: 2025-01-07T21:24:24.461Z (9 months ago)
- Topics: coolq, nonebot
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AntiFood
以暴制暴深夜放毒自动反击系统。
基于 [NoneBot](https://github.com/richardchien/nonebot) 的 QQ 机器人,用[百度云图像识别 API](https://cloud.baidu.com/product/imagerecognition) 识别别人发的图是否为放毒(食物)图片,如果是的话就在百度上随便爬一张食物图片怼回去,让对方也感受一下饥饿。(...)
## Framework- [NoneBot](https://github.com/richardchien/nonebot) ([Docs](https://nonebot.cqp.moe/))
- [CoolQ HTTP API](https://github.com/richardchien/coolq-http-api) ([Docs](https://cqhttp.cc/docs/4.13/#/))
- [酷 Q](https://cqp.cc/)
## Config在 `config.py` 中配置以下内容:
```python
# coolq
COOLQ_IMAGE_PATH = 'your_coolq_path/data/image/' # coolq 文件路径# baidu image recognition api
# 申请 API: https://cloud.baidu.com/product/imagerecognition
# Docs: https://ai.baidu.com/ai-doc/IMAGERECOGNITION/vk3bcxiu2
# 在下面填入 AppID、API Key 和 Secret Key
appID = ''
apiKey = ''
secretKey = ''# baidu image
keyword = '美食' # 百度图片搜索关键词
randomTotol = 100 # 在前多少张图片中随机拉取
```
## Usage
```powershell
python bot.py
```