mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 14:10:58 -05:00
Loggind updates
This commit is contained in:
parent
15cda51e72
commit
73a75b3347
@ -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!")
|
||||
|
||||
@ -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.")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user