From 7497538e3aaccb4823273a0012418c536393baf1 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 18 May 2019 19:55:19 -0400 Subject: [PATCH] test alternative load method --- sopel_modules/SpiceBot_Events/Events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot_Events/Events.py b/sopel_modules/SpiceBot_Events/Events.py index c36d800..43eb1d7 100644 --- a/sopel_modules/SpiceBot_Events/Events.py +++ b/sopel_modules/SpiceBot_Events/Events.py @@ -35,7 +35,7 @@ def bot_events_start(bot, trigger): @sopel.module.rule('.*') def bot_startup_connection(bot, trigger): """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 time.sleep(1) 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.rule('.*') 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) while True: