mention cron in readme
This commit is contained in:
parent
ae7480317d
commit
9338d3001c
1 changed files with 6 additions and 1 deletions
|
|
@ -64,9 +64,14 @@ finally, make a markov generated post:
|
||||||
python generate.py
|
python generate.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
you can use a cronjob/crontab on your user to automate posting, for example, to post every two hours:
|
||||||
|
```
|
||||||
|
0 */2 * * * cd /home/ruben/markov && source /home/ruben/markov/venv/bin/activate && python /home/ruben/markov/generate.py
|
||||||
|
```
|
||||||
|
|
||||||
### example script
|
### example script
|
||||||
|
|
||||||
here's a dumb and probably over engineered script i made to interact with the post. you may edit this and use it to your own will and needs.
|
here's a dumb and probably over engineered script i made to interact with the bot. you may edit this and use it to your own will and needs.
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# cding into the markov directory is required otherwise it fails to load the model
|
# cding into the markov directory is required otherwise it fails to load the model
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue