Cannot trigger falsely when not connected

This commit is contained in:
deathbybandaid 2019-05-06 08:07:41 -04:00
parent 26bec78efa
commit eca28b9626
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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__))