This commit is contained in:
Luke Rogers 2014-02-14 00:47:01 +13:00
parent ada153c8bc
commit ee0ad67a16
14 changed files with 24 additions and 50 deletions

View file

@ -18,7 +18,7 @@ def is_valid(data):
@hook.command(autohelp=False)
def imgur(inp):
"imgur [subreddit] -- Gets the first page of imgur images from [subreddit] and returns a link to them. If [subreddit] is undefined, return any imgur images"
"""imgur [subreddit] -- Gets the first page of imgur images from [subreddit] and returns a link to them. If [subreddit] is undefined, return any imgur images"""
if inp:
# see if the input ends with "nsfw"
show_nsfw = inp.endswith(" nsfw")