mention cron in readme

This commit is contained in:
Ruben 2025-04-23 12:54:36 -05:00
commit 9338d3001c
No known key found for this signature in database
GPG key ID: AE181294E97E4802

View file

@ -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