A Discord bot that monitors a subreddit and posts new submissions to a specified Discord channel. Also responds to commands for recent and top posts.
- Monitors subreddit for new posts in real-time
- Exclusion list for filtering unwanted content
- Commands:
- recent - Shows latest subreddit post
- top5 - Shows top 5 hot posts
- help - Lists available commands
- Clone the repository
- Create a docker-compose.yml:
services:
discord_bot:
build: .
volumes:
- ./exclusionlist.txt:/app/excluded_keywords.txt
environment:
- DISCORD_TOKEN=your_token
- DISCORD_CHANNEL_ID=your_channel
- BOT_PREFIX=!
- REDDIT_CLIENT=your_client_id
- REDDIT_SECRET=your_secret
- REDDIT_USER_AGENT=your_user_agent
- REDDIT_USERNAME=your_username
- REDDIT_PASSWORD=your_password
- REDDIT_SUBREDDIT=subreddit_name
restart: unless-stopped
- (Optional) Create exclusionlist.txt with keywords to filter, one per line
docker compose up -d
- Docker
- Discord Bot Token
- Reddit API Credentials