complete previous push

This commit is contained in:
deathbybandaid 2019-05-22 13:02:17 -04:00
parent d099e3fc2b
commit 8304350b1a
5 changed files with 28 additions and 28 deletions

View File

@ -11,10 +11,10 @@ class BotChannels():
"""This Logs all channels known to the server""" """This Logs all channels known to the server"""
def __init__(self): def __init__(self):
self.channel_lock = False self.channel_lock = False
self.SpiceBot_Channels = { self.dict = {
"list": {}, "list": {},
"InitialProcess": False "InitialProcess": False
} }
def channel_list_request(self, bot): def channel_list_request(self, bot):
bot.write(['LIST']) bot.write(['LIST'])

View File

@ -12,15 +12,15 @@ import spicemanip
class BotCommands(): class BotCommands():
"""This Logs all commands known to the bot""" """This Logs all commands known to the bot"""
def __init__(self): def __init__(self):
self.SpiceBot_Commands = { self.dict = {
"counts": 0, "counts": 0,
"commands": { "commands": {
'module': {}, 'module': {},
'nickname': {}, 'nickname': {},
'rule': {} 'rule': {}
}, },
"nickrules": [] "nickrules": []
} }
def commandsquery_register(self, bot, command_type, validcoms, aliasfor=None): def commandsquery_register(self, bot, command_type, validcoms, aliasfor=None):

View File

@ -14,10 +14,10 @@ class BotDatabase():
def __init__(self): def __init__(self):
self.lock = threading.Lock() self.lock = threading.Lock()
self.SpiceBot_Database = { self.dict = {
"nicks": {}, "nicks": {},
"channels": {}, "channels": {},
} }
"""Nick""" """Nick"""

View File

@ -33,13 +33,13 @@ class BotEvents(object):
self.BOT_LOADED = '1004' self.BOT_LOADED = '1004'
self.BOT_RECONNECTED = '1005' self.BOT_RECONNECTED = '1005'
self.defaultevents = [self.BOT_WELCOME, self.BOT_READY, self.BOT_CONNECTED, self.BOT_LOADED, self.BOT_RECONNECTED] self.defaultevents = [self.BOT_WELCOME, self.BOT_READY, self.BOT_CONNECTED, self.BOT_LOADED, self.BOT_RECONNECTED]
self.SpiceBot_Events = { self.dict = {
"assigned_IDs": {1000: "Default", 1001: "BOT_WELCOME", 1002: "BOT_READY", 1003: "BOT_CONNECTED", 1004: "BOT_LOADED", 1005: "BOT_RECONNECTED"}, "assigned_IDs": {1000: "Default", 1001: "BOT_WELCOME", 1002: "BOT_READY", 1003: "BOT_CONNECTED", 1004: "BOT_LOADED", 1005: "BOT_RECONNECTED"},
"triggers_recieved": {}, "triggers_recieved": {},
"trigger_queue": [], "trigger_queue": [],
"startup_required": [self.BOT_WELCOME, self.BOT_READY, self.BOT_CONNECTED], "startup_required": [self.BOT_WELCOME, self.BOT_READY, self.BOT_CONNECTED],
"RPL_WELCOME_Count": 0 "RPL_WELCOME_Count": 0
} }
def __getattr__(self, name): def __getattr__(self, name):
''' will only get called for undefined attributes ''' ''' will only get called for undefined attributes '''

View File

@ -15,10 +15,10 @@ import spicemanip
class BotLogs(): class BotLogs():
"""This Is a contained source of log information""" """This Is a contained source of log information"""
def __init__(self): def __init__(self):
self.SpiceBot_Logs = { self.dict = {
"list": {"Sopel_systemd": [], "Sopel_stdio": []}, "list": {"Sopel_systemd": [], "Sopel_stdio": []},
"queue": [] "queue": []
} }
self.sopel_config = { self.sopel_config = {
"logging_channel": True "logging_channel": True
} }