RunasScript - A-Duck/Epic-Scraper-Bot GitHub Wiki
Run Epic-Scraper-Bot as a Script
Before we Begin
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
Settings File (.env)
- 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.
Example
TG_Bot_ID=""
SERVER_PASSWORD=""
CRON_SCHEDULE="* 19 * * *"
Running the application
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.