Praw & Discord.py: The bot keep sending the same meme. I want the bot to send different meme whenever it is asked

There is no need for you to iterate over anything. Praw provides a method which allows you to grab a random submission from a subreddit. Documentation: random() Code: Note: I have move the random_submission inside the If-statement because there is no need for you to look up a submission if the message doesn’t say “meme”. … Read more