From 29031582b07031ade1c7ec96600a287f4ec0635a Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 18 May 2019 14:33:02 -0400 Subject: [PATCH] really classy now --- sopel_modules/SpiceBot_Events/Events.py | 4 ++++ sopel_modules/SpiceBot_Logs/Queue.py | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/sopel_modules/SpiceBot_Events/Events.py b/sopel_modules/SpiceBot_Events/Events.py index 2a92e6c..c36d800 100644 --- a/sopel_modules/SpiceBot_Events/Events.py +++ b/sopel_modules/SpiceBot_Events/Events.py @@ -11,6 +11,10 @@ from sopel_modules.SpiceBot.Events import botevents import time +def setup(bot): + botlogs.log('SpiceBot_Events', "Starting setup procedure") + + @sopel.module.event(botevents.RPL_WELCOME) @sopel.module.rule('.*') def bot_startup_welcome(bot, trigger): diff --git a/sopel_modules/SpiceBot_Logs/Queue.py b/sopel_modules/SpiceBot_Logs/Queue.py index 7ddb744..2772525 100644 --- a/sopel_modules/SpiceBot_Logs/Queue.py +++ b/sopel_modules/SpiceBot_Logs/Queue.py @@ -6,6 +6,13 @@ import sopel.tools import sopel.config from sopel_modules.SpiceBot.Logs import botlogs +from sopel_modules.SpiceBot.Events import botevents + + +def setup(bot): + botlogs.log('SpiceBot_Logs', "Starting Setup Procedure") + botevents.startup_add([botevents.BOT_LOGS]) + botevents.trigger(bot, botevents.BOT_LOGS, "SpiceBot_Logs") @sopel.module.event('001')