Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bbilly1/reddit-bot
Monitor Reddit for keywords
https://github.com/bbilly1/reddit-bot
archive discord-bot reddit scraper
Last synced: about 2 months ago
JSON representation
Monitor Reddit for keywords
- Host: GitHub
- URL: https://github.com/bbilly1/reddit-bot
- Owner: bbilly1
- License: gpl-3.0
- Created: 2022-12-19T09:53:48.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T13:02:32.000Z (2 months ago)
- Last Synced: 2024-10-21T20:15:49.963Z (2 months ago)
- Topics: archive, discord-bot, reddit, scraper
- Language: Python
- Homepage:
- Size: 73.2 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Reddit - Discord Bot
*Monitor Reddit for keywords*## About this project
There aren't really any plans to further develop this little script. This was a lazy afternoon project automating some specific repetitive task. I open sourced it in the hopes others might find this useful, but don't expect any support or feature developments. If you want to contribute, I'm happy to look at your PR. When in doubt if your idea will be a good fit, reach out first.## Core Functionality
- Send Discord notifications on events
- Monitor a single Subreddit, notify all comments
- Monitor all of Reddit for any keyword mentions in comments or post## Setup
Needs a volume at `/data` to store a sqlite database with notifications sent.Configure the following environment variables
- **SUB_REDDIT**: Name of the subreddit to monitor, e.g. `r/TubeArchivist`
- **KEYWORDS**: Comma separated list of minimal one keyword
- **DISCORD_HOOK**: Hook url to send discord notifications to## Run
At first run, *reddit bot* will populate the database with past matches and send one notification of each for testing.After that, the bot will search for new mentions every hour.