mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
25 lines
549 B
Python
25 lines
549 B
Python
# coding=utf-8
|
|
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
|
|
import sopel.module
|
|
|
|
import sopel_modules.SpiceBot as SpiceBot
|
|
|
|
|
|
@sopel.module.rule(r"""(?:)u/
|
|
(
|
|
(?:\\/ | [^/])+
|
|
)
|
|
""")
|
|
@sopel.module.rule(r"""(?:)r/
|
|
(
|
|
(?:\\/ | [^/])+
|
|
)
|
|
""")
|
|
def bot_command_reddit_user(bot, trigger):
|
|
inputs = list(trigger.group(1).split(" "))[0]
|
|
bot.say(str(inputs))
|
|
message = SpiceBot.reddit.prerun(trigger)
|
|
bot.osd(str(message))
|