添加使用方法
This commit is contained in:
parent
4927ee63e8
commit
a15c6ecf72
24
README.md
Normal file
24
README.md
Normal 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
|
||||
```
|
2
main.py
2
main.py
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user