Create a virtual environment and install required Python packages:
make deps
Set up and enable the bot service using Supervisor:
make install
This command registers supervisor service:
bot
: Manages bot interactions.
To start service run:
make start
To check the API at regular intervals, add notifier.sh
to cron:
-
Make the script executable:
chmod +x /path/to/notifier.sh
-
Add it to cron (for example run every 5 minutes between 7 AM and 11 PM):
*/5 7-23 * * * /path/to/notifier.sh