make sure bot start dialogue is the correct order

This commit is contained in:
deathbybandaid 2019-05-08 14:30:43 -04:00
parent b70f733383
commit a707167f9f
2 changed files with 4 additions and 2 deletions

View File

@ -10,13 +10,13 @@ from sopel_modules.SpiceBot_SBTools import bot_logging
def setup(bot):
bot_logging(bot, 'SpiceBot_StartupMonologue', "Starting setup procedure")
bot_events_startup_register(bot, ['2010', '2011'])
bot_events_startup_register(bot, ['2010', '2011', '2012'])
if 'SpiceBot_StartupMonologue' not in bot.memory:
bot.memory['SpiceBot_StartupMonologue'] = []
@sopel.module.event('2005', '2010', '2011')
@sopel.module.event('2005', '2010', '2011', '2012')
@sopel.module.rule('.*')
def bot_events_setup(bot, trigger):
bot_events_recieved(bot, trigger.event)

View File

@ -18,6 +18,8 @@ def bot_startup_monologue_start(bot, trigger):
bot_logging(bot, 'SpiceBot_StartupMonologue', bot.nick + " is now starting. Please wait while I load my configuration")
bot.osd(" is now starting. Please wait while I load my configuration.", bot.channels.keys(), 'ACTION')
bot_events_trigger(bot, 2012, "SpiceBot_StartupMonologue")
@sopel.module.event('2002')
@sopel.module.rule('.*')