From 73a75b33470135661abe030ce6ba2ec6d815c94c Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Mon, 13 May 2019 10:50:48 -0400 Subject: [PATCH] Loggind updates --- sopel_modules/SpiceBot_Logs/ErrorDisplay.py | 5 +++++ .../SpiceBot_StartupMonologue/StartupMonologue_Display.py | 1 + 2 files changed, 6 insertions(+) diff --git a/sopel_modules/SpiceBot_Logs/ErrorDisplay.py b/sopel_modules/SpiceBot_Logs/ErrorDisplay.py index 39e50a3..c89f04b 100644 --- a/sopel_modules/SpiceBot_Logs/ErrorDisplay.py +++ b/sopel_modules/SpiceBot_Logs/ErrorDisplay.py @@ -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!") diff --git a/sopel_modules/SpiceBot_StartupMonologue/StartupMonologue_Display.py b/sopel_modules/SpiceBot_StartupMonologue/StartupMonologue_Display.py index 6f1310c..80e8f9f 100644 --- a/sopel_modules/SpiceBot_StartupMonologue/StartupMonologue_Display.py +++ b/sopel_modules/SpiceBot_StartupMonologue/StartupMonologue_Display.py @@ -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.")