mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
complete previous push
This commit is contained in:
parent
d099e3fc2b
commit
8304350b1a
@ -11,10 +11,10 @@ class BotChannels():
|
||||
"""This Logs all channels known to the server"""
|
||||
def __init__(self):
|
||||
self.channel_lock = False
|
||||
self.SpiceBot_Channels = {
|
||||
"list": {},
|
||||
"InitialProcess": False
|
||||
}
|
||||
self.dict = {
|
||||
"list": {},
|
||||
"InitialProcess": False
|
||||
}
|
||||
|
||||
def channel_list_request(self, bot):
|
||||
bot.write(['LIST'])
|
||||
|
||||
@ -12,15 +12,15 @@ import spicemanip
|
||||
class BotCommands():
|
||||
"""This Logs all commands known to the bot"""
|
||||
def __init__(self):
|
||||
self.SpiceBot_Commands = {
|
||||
"counts": 0,
|
||||
"commands": {
|
||||
'module': {},
|
||||
'nickname': {},
|
||||
'rule': {}
|
||||
},
|
||||
"nickrules": []
|
||||
}
|
||||
self.dict = {
|
||||
"counts": 0,
|
||||
"commands": {
|
||||
'module': {},
|
||||
'nickname': {},
|
||||
'rule': {}
|
||||
},
|
||||
"nickrules": []
|
||||
}
|
||||
|
||||
def commandsquery_register(self, bot, command_type, validcoms, aliasfor=None):
|
||||
|
||||
|
||||
@ -14,10 +14,10 @@ class BotDatabase():
|
||||
|
||||
def __init__(self):
|
||||
self.lock = threading.Lock()
|
||||
self.SpiceBot_Database = {
|
||||
"nicks": {},
|
||||
"channels": {},
|
||||
}
|
||||
self.dict = {
|
||||
"nicks": {},
|
||||
"channels": {},
|
||||
}
|
||||
|
||||
"""Nick"""
|
||||
|
||||
|
||||
@ -33,13 +33,13 @@ class BotEvents(object):
|
||||
self.BOT_LOADED = '1004'
|
||||
self.BOT_RECONNECTED = '1005'
|
||||
self.defaultevents = [self.BOT_WELCOME, self.BOT_READY, self.BOT_CONNECTED, self.BOT_LOADED, self.BOT_RECONNECTED]
|
||||
self.SpiceBot_Events = {
|
||||
"assigned_IDs": {1000: "Default", 1001: "BOT_WELCOME", 1002: "BOT_READY", 1003: "BOT_CONNECTED", 1004: "BOT_LOADED", 1005: "BOT_RECONNECTED"},
|
||||
"triggers_recieved": {},
|
||||
"trigger_queue": [],
|
||||
"startup_required": [self.BOT_WELCOME, self.BOT_READY, self.BOT_CONNECTED],
|
||||
"RPL_WELCOME_Count": 0
|
||||
}
|
||||
self.dict = {
|
||||
"assigned_IDs": {1000: "Default", 1001: "BOT_WELCOME", 1002: "BOT_READY", 1003: "BOT_CONNECTED", 1004: "BOT_LOADED", 1005: "BOT_RECONNECTED"},
|
||||
"triggers_recieved": {},
|
||||
"trigger_queue": [],
|
||||
"startup_required": [self.BOT_WELCOME, self.BOT_READY, self.BOT_CONNECTED],
|
||||
"RPL_WELCOME_Count": 0
|
||||
}
|
||||
|
||||
def __getattr__(self, name):
|
||||
''' will only get called for undefined attributes '''
|
||||
|
||||
@ -15,10 +15,10 @@ import spicemanip
|
||||
class BotLogs():
|
||||
"""This Is a contained source of log information"""
|
||||
def __init__(self):
|
||||
self.SpiceBot_Logs = {
|
||||
"list": {"Sopel_systemd": [], "Sopel_stdio": []},
|
||||
"queue": []
|
||||
}
|
||||
self.dict = {
|
||||
"list": {"Sopel_systemd": [], "Sopel_stdio": []},
|
||||
"queue": []
|
||||
}
|
||||
self.sopel_config = {
|
||||
"logging_channel": True
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user