instastory-monitor-telegram
instastory-monitor-telegram copied to clipboard
Add cronjob support
A specific question, so it's understandable to anyone. You may add cronjob support for update the metadata & dispatch periodically.
Library you may use (or you can made it manually) :
https://www.npmjs.com/package/node-cron
Is it possible to add a cronjob directly into the script, so when it is executed it will run automatically periodically without running bash using the cron process manager, thank you.
Thanks!
Additional notes: we may also want to run this Jobs by simply running the orchestrator, why? because people usually using cronjob from GitHub Actions to trigger the Jobs. so keep in mind while extending this project to adding support for these cases, and not deprecated the backward compatibility.