mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test for server name
This commit is contained in:
parent
4cad278049
commit
dfb3216cd1
14
sopel_modules/SpiceBot/Server.py
Normal file
14
sopel_modules/SpiceBot/Server.py
Normal 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()
|
||||
@ -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 *
|
||||
|
||||
14
sopel_modules/SpiceBot_Core_Processing/Server.py
Normal file
14
sopel_modules/SpiceBot_Core_Processing/Server.py
Normal 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")
|
||||
@ -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 *
|
||||
|
||||
Loading…
Reference in New Issue
Block a user