mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
Cannot trigger falsely when not connected
This commit is contained in:
parent
26bec78efa
commit
eca28b9626
@ -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
|
||||
|
||||
@ -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__))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user