mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
make sure bot start dialogue is the correct order
This commit is contained in:
parent
b70f733383
commit
a707167f9f
@ -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)
|
||||
|
||||
@ -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('.*')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user