https://github.com/colecrouter/reddit-link-bot
A Discord bot that automatically replies to Reddit links with inline media (videos and images).
https://github.com/colecrouter/reddit-link-bot
discord reddit utility
Last synced: about 1 month ago
JSON representation
A Discord bot that automatically replies to Reddit links with inline media (videos and images).
- Host: GitHub
- URL: https://github.com/colecrouter/reddit-link-bot
- Owner: colecrouter
- Created: 2023-07-21T02:17:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-08-21T15:29:31.000Z (10 months ago)
- Last Synced: 2025-08-21T18:18:04.210Z (10 months ago)
- Topics: discord, reddit, utility
- Language: Go
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reddit-link-bot
A Discord bot that automatically replies to Reddit links with inline media (videos and images).
## Purpose
A while back, Reddit redid their platform's OpenGraph link previews/embeds. Previously, you would get single image previews (static images and GIFs, not videos) when sharing links to posts. Now, Reddit now only serves generated image with watermarks (een for GIFs).
This bot solves this issue by responding to messages with the embeded media from Reddit, so you don't have to visit Reddit to vew it/them.
## Features
- Static images & GIFs
- Videos w/ or w/o sound
- Galleries (posts with multiple images)
- Marks spoiler or NSFW content as a spoiler
## Usage
```bash
go run ./cmd/main.go
```
This will generate a `config.yml` file in the current directory. Insert your Discord bot token and restart the bot.
### Configuration
You can tweak the settings to only allow the bot to respond in certain channels or to certain roles. You can also disable NSFW content.
```yml
discord:
token: ""
channels: []
roles: []
no_nsfw: false
reddit:
client_id: ""
client_secret: ""
username: ""
password: ""
```
If you don't want to use the Reddit API, you can disable it by setting:
```yml
reddit: null
```
## Requirements
- Must have FFMPEG installed and exported/added to PATH. Does not require FFMPEG build with HTTPS support.