start of reddit testing

This commit is contained in:
deathbybandaid 2019-06-19 09:11:56 -04:00
parent 3b4943dd1e
commit 37914e1f1c
4 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# coding=utf8
from __future__ import unicode_literals, absolute_import, division, print_function
"""
This is the SpiceBot Reddit system.
"""
class BotReddit():
"""This Logs all channels known to the server"""
def __init__(self):
self.dict = {}
reddit = BotReddit()

View File

@ -25,6 +25,7 @@ from .AI import *
from .Google import *
from .Gif import *
from .Sherlock import *
from .Reddit import *
from .configure import *

View File

@ -0,0 +1,27 @@
# 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/
(
(?:\\/ | [^/])+
)
""")
def bot_command_reddit_user(bot, trigger):
bot.osd(str(trigger))
bot.osd(str(trigger.args))
@sopel.module.rule(r"""(?:)r/
(
(?:\\/ | [^/])+
)
""")
def bot_command_reddit_subreddit(bot, trigger):
bot.osd(str(trigger))
bot.osd(str(trigger.args))

View File

@ -20,6 +20,7 @@ from .Search import *
from .AI import *
from .Gif import *
from .Sherlock import *
from .Reddit import *
__author__ = 'Sam Zick'
__email__ = 'sam@deathbybandaid.net'