Browse Source

Fixed a bug where inputting a capitalised subreddit would not return the subreddit you wanted and would post an error.

tags/v1.4.0
roxie 6 years ago
parent
commit
47a64624c1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cogs/reddit.py

+ 2
- 1
cogs/reddit.py View File

@@ -102,10 +102,11 @@ class Reddit():
@bot.command()
async def subreddit(self, ctx, subreddit):
"""
Grabs an image (png, gif, gifv, webm) from the subreddit inputted.
Grabs an image or video (jpg, png, gif, gifv, webm, mp4) from the subreddit inputted.
Example:
{command_prefix}subreddit pics
"""
subreddit = subreddit.lower()
links = Scrapper().linkget(subreddit, True)
title = ""
if not links:

Loading…
Cancel
Save