Skip to content

TommasoAmici/r_soccer_goals

Repository files navigation

CI/CD

r_soccer_goals

A Telegram bot that reposts Serie A goals (or any type of content) from /r/soccer/new (or other subreddits) to a channel.

Usage

With Docker

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

Without Docker

  • 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.

Environment variables

  • TELEGRAM_CHAT_ID: chat to which the bot will send the video clips
  • TELEGRAM_BOT_TOKEN
  • REDDIT_SUBREDDIT: subreddit the bot will monitor for incoming posts
  • TEAMS: comma separated list of teams you want to receive goals for. e.g. "Juventus,Inter,Milan". Defaults to current Serie A teams.