添加使用方法

This commit is contained in:
机器人总动员 2021-05-05 17:25:02 +08:00
parent 4927ee63e8
commit a15c6ecf72
2 changed files with 25 additions and 1 deletions

24
README.md Normal file
View File

@ -0,0 +1,24 @@
### 使用方法
```angular2html
cd /root
docker pull redis
echo '#! /bin/sh \
cd /root/word_cloud_bot && python3 main.py >> output 2>&1 &
tail -f /dev/null' > /root/entrypoint.sh
wget -O /root/Dockerfile https://github.com/devourbots/word_cloud_bot/raw/master/Dockerfile
vi /root/Dockerfile
在第六行修改你的机器人TOKEN
docker build . -t world_cloud_bot:latest
docker run -d -p 6379:6379 redis:latest
docker run -d --net=host world_cloud_bot:latest
```

View File

@ -5,7 +5,7 @@ import schedule
from task import do_task
import threading
schedule.every().day.at('16:20').do(do_task).tag('task')
schedule.every().day.at('23:30').do(do_task).tag('task')
# schedule.every(1).minutes.do(do_task).tag('task')
threading.Thread(target=check_schedule).start()