This commit is contained in:
deathbybandaid 2019-06-19 09:17:26 -04:00
parent 37914e1f1c
commit 81867f24ee

View File

@ -7,21 +7,13 @@ import sopel.module
# import sopel_modules.SpiceBot as SpiceBot
@sopel.module.rule(r"""(?:)u/
(
(?:\\/ | [^/])+
)
""")
@sopel.module.rule(r"""(?:)u/((?:\\/ | [^/])+)""")
def bot_command_reddit_user(bot, trigger):
bot.osd(str(trigger))
bot.osd(str(trigger.args))
@sopel.module.rule(r"""(?:)r/
(
(?:\\/ | [^/])+
)
""")
@sopel.module.rule(r"""(?:)r/((?:\\/ | [^/])+)""")
def bot_command_reddit_subreddit(bot, trigger):
bot.osd(str(trigger))
bot.osd(str(trigger.args))