From eca28b96266ef3dcb29fecf779706f51bbd6fa06 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Mon, 6 May 2019 08:07:41 -0400 Subject: [PATCH] Cannot trigger falsely when not connected --- sopel_modules/SpiceBot_Events/System.py | 1 - sopel_modules/SpiceBot_GifSearch/gifsearch.py | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot_Events/System.py b/sopel_modules/SpiceBot_Events/System.py index 8d0491f..50db905 100644 --- a/sopel_modules/SpiceBot_Events/System.py +++ b/sopel_modules/SpiceBot_Events/System.py @@ -75,7 +75,6 @@ def bot_events_startup_check(bot): for startupitem in bot.memory["SpiceBot_Events"]["startup"]: if str(startupitem) not in bot.memory["SpiceBot_Events"]["loaded"]: - bot_logging(bot, 'SpiceBot_Events', str(startupitem)) return False return True diff --git a/sopel_modules/SpiceBot_GifSearch/gifsearch.py b/sopel_modules/SpiceBot_GifSearch/gifsearch.py index a75b087..54f6784 100644 --- a/sopel_modules/SpiceBot_GifSearch/gifsearch.py +++ b/sopel_modules/SpiceBot_GifSearch/gifsearch.py @@ -59,6 +59,12 @@ def setup(bot): if 'SpiceBot_GifSearch' not in bot.memory: bot.memory["SpiceBot_GifSearch"] = {"cache": {}, "badgiflinks": [], 'valid_gif_api_dict': {}} + +@sopel.module.event('1003') +@sopel.module.rule('.*') +def bot_startup_gifsearch_complete(bot, trigger): + bot_events_recieved(bot, trigger.event) + dir_to_scan = [] moduledir = os.path.dirname(os.path.abspath(__file__))