这是一个关于微信BOT
此项目基于 wechatbot-webhook+FastAPI+tortoise-orm开发,以 sqlite 作为数据库的微信BOT
喜加一
指令 | 结果 |
---|---|
喜加一 | |
KFC文案
指令 | 结果 |
---|---|
kfc |
CRAZY-THURSDAY,周期性发作,需要一种叫V- ME 50的特殊药物靶向治疗 |
启动
git clone git@github.com:leiyi2000/wechat-bot.git && cd wechat-bot && docker compose up
天气密钥
curl -X 'POST' \
'http://127.0.0.1:3002/config' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"key": "weather",
"value": "高德的天气密钥"
}'
ALIST-(配置此项可存储图片)
curl -X 'POST' \
'http://127.0.0.1:8000/config' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"key": "alist",
"value": "{\"api\":\"http://公网:xxxx\",\"api_key\":\"AList接口密钥\",\"path\":\"AList上的保存路径\"}"
}'