- 创建 Telegram Bot
根据官方文档创建 Telegram 机器人,获得机器人的 token - 获取 Pixiv refresh token
使用gppt
获取 Pixiv refresh token
- 下载
config
和docker-compose.yml
,文件结构如下:
sesebot/
config/
config.json
token.json
docker-compose.yml
- 在
token.json
中填入 pixiv token 和 telegrame bot token - 在
sesebot
中执行docker compose up -d
(支持x64
和arm64
,如果你的CPU架构是arm64
,需要将docker-compose.yml
中的amd64
tag 改为arm64
)
- 克隆本项目
pip install -r requirements.txt
- 安装
Redis
- 在
token.json
中填入 pixiv token 和 telegrame bot token - 在
config.json
填入 redis 的地址和端口 python src/main.py