From 947776e19ea135df61ddd95b53e66e0d06486c1a Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 18 May 2019 08:28:43 -0400 Subject: [PATCH] try this method --- sopel_modules/SpiceBot_Logs/ErrorDisplay.py | 1 - sopel_modules/SpiceBot_Logs/Logs.py | 29 --------------------- sopel_modules/SpiceBot_Logs/Logs_Command.py | 1 - 3 files changed, 31 deletions(-) diff --git a/sopel_modules/SpiceBot_Logs/ErrorDisplay.py b/sopel_modules/SpiceBot_Logs/ErrorDisplay.py index 4b9762e..95a5d40 100644 --- a/sopel_modules/SpiceBot_Logs/ErrorDisplay.py +++ b/sopel_modules/SpiceBot_Logs/ErrorDisplay.py @@ -1,5 +1,4 @@ # coding=utf-8 - from __future__ import unicode_literals, absolute_import, division, print_function import sopel.module diff --git a/sopel_modules/SpiceBot_Logs/Logs.py b/sopel_modules/SpiceBot_Logs/Logs.py index 62311b5..e6a3dc3 100644 --- a/sopel_modules/SpiceBot_Logs/Logs.py +++ b/sopel_modules/SpiceBot_Logs/Logs.py @@ -1,25 +1,6 @@ # coding=utf-8 - from __future__ import unicode_literals, absolute_import, division, print_function -import sopel.module -from sopel.config.types import StaticSection, ValidatedAttribute - -from sopel_modules.SpiceBot_SBTools import bot_logging -from sopel_modules.SpiceBot_Events.System import botevents - -import os - -import spicemanip - - -# coding=utf8 -from __future__ import unicode_literals, absolute_import, division, print_function - -__author__ = 'Sam Zick' -__email__ = 'sam@deathbybandaid.net' -__version__ = '0.1.1' - import sopel.module import sopel.tools import sopel.config @@ -123,10 +104,6 @@ class BotLogs(): botlogs = BotLogs() -def setup(bot): - botlogs.log('SpiceBot_Logs', "Starting Setup Procedure") - - @sopel.module.event('001') @sopel.module.rule('.*') def join_log_channel(bot, trigger): @@ -147,12 +124,6 @@ def join_log_channel(bot, trigger): botlogs.SpiceBot_Logs["queue"] = [] -def setup(bot): - bot_logging(bot, 'SpiceBot_Logs', "Starting Setup Procedure") - botevents.startup_add([botevents.BOT_LOGS]) - botevents.trigger(bot, botevents.BOT_LOGS, "SpiceBot_Logs") - - def stdio_logs_fetch(bot): stdio_ignore = [] diff --git a/sopel_modules/SpiceBot_Logs/Logs_Command.py b/sopel_modules/SpiceBot_Logs/Logs_Command.py index dd4d78e..443b08c 100644 --- a/sopel_modules/SpiceBot_Logs/Logs_Command.py +++ b/sopel_modules/SpiceBot_Logs/Logs_Command.py @@ -1,5 +1,4 @@ # coding=utf-8 - from __future__ import unicode_literals, absolute_import, division, print_function import sopel.module