mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
events system should queue as soon as possible
This commit is contained in:
parent
08a7bcdac6
commit
f63e1a7e1b
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user