From f63e1a7e1bd1a7b0712609785d4b2d1248d02cfd Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 18 May 2019 20:24:07 -0400 Subject: [PATCH] events system should queue as soon as possible --- sopel_modules/SpiceBot_Events/Queue.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot_Events/Queue.py b/sopel_modules/SpiceBot_Events/Queue.py index 0590f63..6da59a0 100644 --- a/sopel_modules/SpiceBot_Events/Queue.py +++ b/sopel_modules/SpiceBot_Events/Queue.py @@ -7,11 +7,10 @@ import sopel.module from sopel_modules.SpiceBot.Events import botevents -@sopel.module.event(botevents.BOT_CONNECTED) +@sopel.module.event(botevents.RPL_WELCOME) @sopel.module.rule('.*') def bot_events_connected(bot, trigger): """For items tossed in a queue, this will trigger them accordingly""" - while True: if len(botevents.SpiceBot_Events["trigger_queue"]): pretriggerdict = botevents.SpiceBot_Events["trigger_queue"][0]