Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hardcoremagazine/reddittodiscordshare

Extract content from reddit "Share" links
https://github.com/hardcoremagazine/reddittodiscordshare

bot discontinued discord discord-bot python reddit utility

Last synced: about 1 month ago
JSON representation

Extract content from reddit "Share" links

Awesome Lists containing this project

README

        

# RedditToDiscordShare (RTDS)

Bot made explicitly to extract
images/links & text from Reddit links
and post them as embedded files
-- so your friends/server-mates don't have to open post
in reddit app.

***Project has been discontinued due to [Reddit API changes](https://en.wikipedia.org/wiki/2023_Reddit_API_controversy)***.

**Tested and works with**:
- Normal & "share" links
- Links with brackets '<', '>' and '||spoiler||' tag
- Posts that contain external links (such as YouTube, Imgur, Wikipedia)
- GIF posts
- NSFW posts

**Doesn't work with**:
- Reddit videos
- Gallery (multi-picture) posts

---
### Usage [new]
All commands can be accessed with /
![image](image2.png)
If users cannot access bot commands (none available/show up),
make sure you set 'Integration' settings right!

---
### Usage [legacy]
```
[prefix]help - list all commands
[prefix]cv [Submission_URL] - extract image/link from selected post
[prefix]cvt [Submission_URL] - extract text from selected post
```
Example:
![image](image.png)

---
### Dependencies
```
Python 3.8.10
py-cord >= 2.3.2
asyncpraw >= 7.6.1
```
Work on older or newer versions of libraries not guaranteed!

---
### 'cfg.py' contents
```
settings = {
'discordAPI': {
'token': 'bot_private_token',
'prefix': ','
},
'redditAPI': {
'client_id': 'client_id',
'client_secret': 'secret',
'password': 'password', # optional for public submissions
'user_agent': 'Reddit -> Discord link extraction (by u/HardcoreMagazine)',
'username': 'username', # optional for public submissions
}
}
```