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.
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
All commands can be accessed with /
If users cannot access bot commands (none available/show up),
make sure you set 'Integration' settings right!
[prefix]help - list all commands
[prefix]cv [Submission_URL] - extract image/link from selected post
[prefix]cvt [Submission_URL] - extract text from selected post
Python 3.8.10
py-cord >= 2.3.2
asyncpraw >= 7.6.1
Work on older or newer versions of libraries not guaranteed!
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
}
}