This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Currently using RedditReader and looks like its quite clunky and crashes my bot sometimes.
Here is my code.
from RedditReader import Subreddit
if '!reddit' in user_message.lower():
try:
meme = Subreddit('memes')
meme.get_random()
url = meme.url
title = meme.title
await message.channel.send(url)
except:
print("Something did the stank leg")
When I did this, personally I learned to use APIs and did it myself instead of using a wrapper. It's cool to learn and you won't need something to do it for you if you're up to it. I know this doesn't directly answer your question, just here to provide you with another option
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Discord_Bot...