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