A Telegram bot that reposts Serie A goals (or any type of content) from /r/soccer/new (or other subreddits) to a channel.
Pull the image:
docker pull tommasoamici/r_soccer_goals:latest
Create a .env
file with the required environment variables.
Run the image:
docker run --env-file .env r_soccer_goals:latest
- Create a virtual environment with
python -m venv venv
- Activate the virtual environment with
source venv/bin/activate
- Install all the requirements with
python -m pip install -r requirements.txt
- Set the required environment variables.
TELEGRAM_CHAT_ID
: chat to which the bot will send the video clipsTELEGRAM_BOT_TOKEN
REDDIT_CLIENT_ID
: reddit app client id (see this small how-to)REDDIT_CLIENT_SECRET
:REDDIT_SUBREDDIT
: subreddit the bot will monitor for incoming postsTEAMS
: comma separated list of teams you want to receive goals for. e.g. "Juventus,Inter,Milan". Defaults to current Serie A teams.DB_PATH
: path to the sqlite database file, defaults tor_soccer_goals.db