From 59218bedf4d168aa1cffa3f51a61b2b961d53574 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 4 May 2019 17:01:41 -0400 Subject: [PATCH] More Logging Tweaks --- sopel_modules/SpiceBot_Botevents/Connected.py | 2 ++ sopel_modules/SpiceBot_Logs/Logs.py | 2 +- sopel_modules/SpiceBot_SBTools/__init__.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot_Botevents/Connected.py b/sopel_modules/SpiceBot_Botevents/Connected.py index d804c01..1c62e49 100644 --- a/sopel_modules/SpiceBot_Botevents/Connected.py +++ b/sopel_modules/SpiceBot_Botevents/Connected.py @@ -4,6 +4,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi import sopel.module from .BotEvents import check_bot_events, startup_bot_event, set_bot_event +from sopel_modules.SpiceBot_SBTools import bot_logging import time @@ -21,3 +22,4 @@ def bot_startup_connection(bot, trigger): time.sleep(1) set_bot_event(bot, "connected") + bot_logging(bot, 'Sopel_BotEvents', "Connected to IRC") diff --git a/sopel_modules/SpiceBot_Logs/Logs.py b/sopel_modules/SpiceBot_Logs/Logs.py index 9bf46d1..8086580 100644 --- a/sopel_modules/SpiceBot_Logs/Logs.py +++ b/sopel_modules/SpiceBot_Logs/Logs.py @@ -8,7 +8,7 @@ from sopel.config.types import StaticSection, ValidatedAttribute import spicemanip -from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, command_permissions_check, inlist, inlist_match +from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, command_permissions_check, inlist, inlist_match, bot_logging def configure(config): diff --git a/sopel_modules/SpiceBot_SBTools/__init__.py b/sopel_modules/SpiceBot_SBTools/__init__.py index 26fb14c..ab494cd 100644 --- a/sopel_modules/SpiceBot_SBTools/__init__.py +++ b/sopel_modules/SpiceBot_SBTools/__init__.py @@ -5,6 +5,7 @@ from __future__ import unicode_literals, absolute_import, print_function, divisi import sopel from sopel.module import OP, ADMIN, VOICE, OWNER, HALFOP +from sopel.tools import stderr HOP = HALFOP import collections