diff --git a/readme.md b/readme.md index 95674c0..e74fe13 100644 --- a/readme.md +++ b/readme.md @@ -64,9 +64,14 @@ finally, make a markov generated post: 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 -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 #!/bin/bash # cding into the markov directory is required otherwise it fails to load the model