diff --git a/sopel/modules/reddit.py b/sopel/modules/reddit.py index 38b692676a..8c386acd68 100644 --- a/sopel/modules/reddit.py +++ b/sopel/modules/reddit.py @@ -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 @@ -431,7 +431,7 @@ def get_channel_spoiler_free(bot, trigger): bot.say('%s is flagged as spoilers-allowed' % channel) -@rule(r'.*(?r|u)/(?P[a-zA-Z0-9-_]+)\b.*') +@find(r'.*(?r|u)/(?P[a-zA-Z0-9-_]+)\b.*') def reddit_slash_info(bot, trigger): searchtype = trigger.group('prefix').lower() match = trigger.group('id')