mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 03:15:05 +08:00
service file, lxml
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
## 1. 环境
|
||||
推荐使用Python 3,Python 2未进行测试,使用pip安装依赖
|
||||
```bash
|
||||
pip install requests pytelegrambotapi beautifulsoup4
|
||||
pip install requests pytelegrambotapi beautifulsoup4 lxml
|
||||
```
|
||||
## 2. 配置TOKEN
|
||||
修改`config.py`,把TOKEN修改为你的bot token
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
requests
|
||||
pytelegrambotapi
|
||||
beautifulsoup4
|
||||
beautifulsoup4
|
||||
lxml
|
||||
@@ -4,7 +4,7 @@ After=network.target network-online.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
User=nobody
|
||||
Group=nobody
|
||||
|
||||
Restart=on-failure
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python /home/YYeTsBot/bot.py
|
||||
|
||||
Reference in New Issue
Block a user