Remove Import

This commit is contained in:
deathbybandaid 2019-05-04 16:50:19 -04:00
parent d7d36fa015
commit 1882582a9a
2 changed files with 4 additions and 5 deletions

View File

@ -10,8 +10,6 @@ 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
from sopel_modules.SpiceBot_Botevents.BotEvents import check_bot_events
def configure(config): def configure(config):
config.define_section("SpiceBot_Logs", SpiceBot_Logs_MainSection, validate=False) config.define_section("SpiceBot_Logs", SpiceBot_Logs_MainSection, validate=False)
@ -80,9 +78,8 @@ def bot_logging(bot, logtype, logentry):
logmessage = "[" + logtype + "] " + logentry logmessage = "[" + logtype + "] " + logentry
if not check_bot_events(bot, ["connected"]): if bot.config.SpiceBot_Logs.logging_channel:
if bot.config.SpiceBot_Logs.logging_channel: bot.memory['SpiceBot_Logs_queue'].append(logmessage)
bot.memory['SpiceBot_Logs_queue'].append(logmessage)
stderr(logmessage) stderr(logmessage)

View File

@ -7,6 +7,8 @@ import sopel
from sopel.module import OP, ADMIN, VOICE, OWNER, HALFOP from sopel.module import OP, ADMIN, VOICE, OWNER, HALFOP
HOP = HALFOP HOP = HALFOP
from sopel_modules.SpiceBot_Logs.Logs import bot_logging
import collections import collections
import re import re
import os import os