From 8304350b1a157028676260e2b9fd410d00e23c89 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 22 May 2019 13:02:17 -0400 Subject: [PATCH] complete previous push --- sopel_modules/SpiceBot/Channels.py | 8 ++++---- sopel_modules/SpiceBot/Commands.py | 18 +++++++++--------- sopel_modules/SpiceBot/Database.py | 8 ++++---- sopel_modules/SpiceBot/Events.py | 14 +++++++------- sopel_modules/SpiceBot/Logs.py | 8 ++++---- 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/sopel_modules/SpiceBot/Channels.py b/sopel_modules/SpiceBot/Channels.py index a403875..37f0e6d 100644 --- a/sopel_modules/SpiceBot/Channels.py +++ b/sopel_modules/SpiceBot/Channels.py @@ -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']) diff --git a/sopel_modules/SpiceBot/Commands.py b/sopel_modules/SpiceBot/Commands.py index 67edcca..d9e3293 100644 --- a/sopel_modules/SpiceBot/Commands.py +++ b/sopel_modules/SpiceBot/Commands.py @@ -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): diff --git a/sopel_modules/SpiceBot/Database.py b/sopel_modules/SpiceBot/Database.py index e8822d0..c03364d 100644 --- a/sopel_modules/SpiceBot/Database.py +++ b/sopel_modules/SpiceBot/Database.py @@ -14,10 +14,10 @@ class BotDatabase(): def __init__(self): self.lock = threading.Lock() - self.SpiceBot_Database = { - "nicks": {}, - "channels": {}, - } + self.dict = { + "nicks": {}, + "channels": {}, + } """Nick""" diff --git a/sopel_modules/SpiceBot/Events.py b/sopel_modules/SpiceBot/Events.py index 46d9068..96185d0 100644 --- a/sopel_modules/SpiceBot/Events.py +++ b/sopel_modules/SpiceBot/Events.py @@ -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 ''' diff --git a/sopel_modules/SpiceBot/Logs.py b/sopel_modules/SpiceBot/Logs.py index 6937137..9927d09 100644 --- a/sopel_modules/SpiceBot/Logs.py +++ b/sopel_modules/SpiceBot/Logs.py @@ -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 }