SpiceBot-migrated/sopel_modules/SpiceBot_Botevents/Startup_Complete.py

20 lines
496 B
Python

# coding=utf-8
from __future__ import unicode_literals, absolute_import, division, print_function
import sopel.module
from sopel_modules.SpiceBot_SBTools import bot_logging
from .BotEvents import set_bot_event, check_bot_startup
@sopel.module.event('001')
@sopel.module.rule('.*')
def bot_startup_complete(bot, trigger):
while not check_bot_startup(bot):
pass
set_bot_event(bot, "startup_complete")
bot_logging(bot, 'Sopel_BotEvents', "Module Events Logging Complete")