test alternative load method

This commit is contained in:
deathbybandaid 2019-05-18 19:55:19 -04:00
parent 1b73357765
commit 7497538e3a

View File

@ -35,7 +35,7 @@ def bot_events_start(bot, trigger):
@sopel.module.rule('.*') @sopel.module.rule('.*')
def bot_startup_connection(bot, trigger): def bot_startup_connection(bot, trigger):
"""Here, we wait until we are in at least one channel""" """Here, we wait until we are in at least one channel"""
while not len(bot.channels.keys()): while not len(bot.channels.keys()) and not botevents.check([botevents.BOT_CHANNELS]):
pass pass
time.sleep(1) time.sleep(1)
botevents.trigger(bot, botevents.BOT_CONNECTED, "Bot Connected to IRC") botevents.trigger(bot, botevents.BOT_CONNECTED, "Bot Connected to IRC")
@ -53,7 +53,7 @@ def bot_events_startup_complete(bot, trigger):
@sopel.module.event(botevents.BOT_CONNECTED) @sopel.module.event(botevents.BOT_CONNECTED)
@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 then accordingly""" """For items tossed in a queue, this will trigger them accordingly"""
botlogs.log('SpiceBot_Events', trigger.args[1], True) botlogs.log('SpiceBot_Events', trigger.args[1], True)
while True: while True: