events system should queue as soon as possible

This commit is contained in:
deathbybandaid 2019-05-18 20:24:07 -04:00
parent 08a7bcdac6
commit f63e1a7e1b

View File

@ -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]