Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sopel/modules/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import requests

from sopel.formatting import bold, color, colors
from sopel.module import commands, example, NOLIMIT, OP, require_chanmsg, rule, url
from sopel.module import commands, example, find, NOLIMIT, OP, require_chanmsg, url
from sopel.tools import time
from sopel.tools.web import USER_AGENT

Expand Down Expand Up @@ -431,7 +431,7 @@ def get_channel_spoiler_free(bot, trigger):
bot.say('%s is flagged as spoilers-allowed' % channel)


@rule(r'.*(?<!\S)/?(?P<prefix>r|u)/(?P<id>[a-zA-Z0-9-_]+)\b.*')
@find(r'(?<!\S)/?(?P<prefix>r|u)/(?P<id>[a-zA-Z0-9-_]+)\b')
def reddit_slash_info(bot, trigger):
searchtype = trigger.group('prefix').lower()
match = trigger.group('id')
Expand Down