Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tommasoamici/r_soccer_goals
A Telegram bot that reposts Serie A goals from /r/soccer/new
https://github.com/tommasoamici/r_soccer_goals
python reddit serie-a telegram-bot
Last synced: about 1 month ago
JSON representation
A Telegram bot that reposts Serie A goals from /r/soccer/new
- Host: GitHub
- URL: https://github.com/tommasoamici/r_soccer_goals
- Owner: TommasoAmici
- Created: 2018-03-19T18:21:06.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T02:26:27.000Z (about 2 months ago)
- Last Synced: 2024-12-04T03:23:26.315Z (about 2 months ago)
- Topics: python, reddit, serie-a, telegram-bot
- Language: Python
- Size: 8.33 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![CI/CD](https://github.com/TommasoAmici/r_soccer_goals/actions/workflows/docker.yml/badge.svg)](https://github.com/TommasoAmici/r_soccer_goals/actions/workflows/docker.yml)
# 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:
```sh
docker pull tommasoamici/r_soccer_goals:latest
```Create a `.env` file with the required [environment variables](#environment-variables).
Run the image:
```sh
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).## Environment variables
- `TELEGRAM_CHAT_ID`: chat to which the bot will send the video clips
- `TELEGRAM_BOT_TOKEN`
- `REDDIT_CLIENT_ID`: reddit app client id (see this small [how-to](https://rymur.github.io/setup))
- `REDDIT_CLIENT_SECRET`:
- `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.
- `DB_PATH`: path to the sqlite database file, defaults to `r_soccer_goals.db`