Loggind updates

This commit is contained in:
deathbybandaid 2019-05-13 10:50:48 -04:00
parent 15cda51e72
commit 73a75b3347
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
import sopel.module
from sopel_modules.SpiceBot_Events.System import bot_events_recieved
from sopel_modules.SpiceBot_SBTools import bot_logging
from .Logs import stdio_logs_fetch
@ -25,6 +26,10 @@ def bot_startup_monologue_start(bot, trigger):
searchphrasefound.append(str(searchphrase) + " dict file(s) failed")
if len(searchphrasefound):
for foundphase in searchphrasefound:
bot_logging(bot, 'SpiceBot_Logs', str(foundphase))
searchphrasefound.insert(0, "Notice to Bot Admins: ")
searchphrasefound.append("Run the debug command for more information.")
bot.osd(searchphrasefound, bot.channels.keys())
else:
bot_logging(bot, 'SpiceBot_Logs', "No issues found at bot startup!")

View File

@ -64,3 +64,4 @@ def bot_startup_monologue_display(bot, trigger):
bot.osd(bot.memory['SpiceBot_StartupMonologue'], bot.channels.keys(), 'ACTION')
bot_events_trigger(bot, 2005, "SpiceBot_StartupMonologue")
bot_logging(bot, 'SpiceBot_StartupMonologue', "Startup Monologue has been issued to all channels.")