test for server name

This commit is contained in:
deathbybandaid 2019-07-04 08:18:49 -04:00
parent 4cad278049
commit dfb3216cd1
4 changed files with 30 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 Server system.
"""
class BotServer():
"""This Logs all server values of relevance'"""
def __init__(self):
self.dict = {}
server = BotServer()

View File

@ -21,6 +21,7 @@ from .Prerun import *
from .Commands import *
from .Events import *
from .StartupMonologue import *
from .Server import *
from .Channels import *
from .Users import *
from .AI import *

View File

@ -0,0 +1,14 @@
# coding=utf8
from __future__ import unicode_literals, absolute_import, division, print_function
"""
This is the SpiceBot Channels system.
"""
import sopel
import sopel_modules.SpiceBot as SpiceBot
@sopel.module.event(SpiceBot.events.RPL_WELCOME)
@sopel.module.rule('.*')
def server_name(bot, trigger):
bot.say(str(trigger.sender), "deathbybandaid")

View File

@ -7,6 +7,7 @@ This module contains references only for other modules to utilize.
"""
# pylama:ignore=W0401,W0611
from .Server import *
from .Channels import *
from .Users import *
from .Events import *