This commit is contained in:
deathbybandaid 2019-05-18 19:57:14 -04:00
parent 7497538e3a
commit 2cb5915ff9
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ def bot_events_start(bot, trigger):
@sopel.module.rule('.*')
def bot_startup_connection(bot, trigger):
"""Here, we wait until we are in at least one channel"""
while not len(bot.channels.keys()) and not botevents.check([botevents.BOT_CHANNELS]):
while not len(bot.channels.keys()):
pass
time.sleep(1)
botevents.trigger(bot, botevents.BOT_CONNECTED, "Bot Connected to IRC")

View File

@ -17,7 +17,7 @@ import time
def bot_startup_monologue_start(bot, trigger):
# Startup
botlogs.log('SpiceBot_StartupMonologue', bot.nick + " is now starting. Please wait while I load my configuration")
botlogs.log('SpiceBot_StartupMonologue', bot.nick + " is now starting. Please wait while I load my configuration", True)
bot.osd(" is now starting. Please wait while I load my configuration.", bot.channels.keys(), 'ACTION')
botevents.trigger(bot, botevents.BOT_STARTUPMONOLOGUE_CONNECTED, "SpiceBot_StartupMonologue")