-
Notifications
You must be signed in to change notification settings - Fork 4
RunasScript
Chris Van Den Berg edited this page Mar 15, 2022
·
3 revisions
OS packages:
- python3
- cron
Python Packages:
- requests
- python-telegram-bot
- python-dotenv
The python packages can be installed with pip
python -m pip install -r requirements.txt
- TG_Bot_ID: This is the bot ID that you received from @Botfather
- SERVER_PASSWORD: The value enteres here will be set as the registration password. If left blank; no password will be set.
- CRON_SCHEDULE: This is the CRON schedule that specifies how often ESB should search for new games.
TG_Bot_ID=""
SERVER_PASSWORD=""
CRON_SCHEDULE="* 19 * * *"
Once the settings file has been set up, you can start the application by running python Startup.py
.
This will verify the settings are valid, create a CRON job for the Scraper to run, and start the Telegram bot.