mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -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
|
from sopel_modules.SpiceBot.Events import botevents
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.event(botevents.BOT_CONNECTED)
|
@sopel.module.event(botevents.RPL_WELCOME)
|
||||||
@sopel.module.rule('.*')
|
@sopel.module.rule('.*')
|
||||||
def bot_events_connected(bot, trigger):
|
def bot_events_connected(bot, trigger):
|
||||||
"""For items tossed in a queue, this will trigger them accordingly"""
|
"""For items tossed in a queue, this will trigger them accordingly"""
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
if len(botevents.SpiceBot_Events["trigger_queue"]):
|
if len(botevents.SpiceBot_Events["trigger_queue"]):
|
||||||
pretriggerdict = botevents.SpiceBot_Events["trigger_queue"][0]
|
pretriggerdict = botevents.SpiceBot_Events["trigger_queue"][0]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user