We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35d757d commit c6af8ffCopy full SHA for c6af8ff
sopel/modules/reddit.py
@@ -87,11 +87,10 @@ def get_is_cakeday(entrytime):
87
@plugin.url(image_url)
88
@plugin.output_prefix(PLUGIN_OUTPUT_PREFIX)
89
def image_info(bot, trigger, match):
90
+ url = match.group(0)
91
preview = match.group("subdomain") == "preview"
92
if preview:
93
url = "https://i.redd.it/{}".format(match.group("image"))
- else:
94
- url = match.group(0)
95
results = list(
96
bot.memory['reddit_praw']
97
.subreddit('all')
0 commit comments