mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 06:29:54 -05:00
Remove Import
This commit is contained in:
parent
d7d36fa015
commit
1882582a9a
@ -10,8 +10,6 @@ import spicemanip
|
||||
|
||||
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):
|
||||
config.define_section("SpiceBot_Logs", SpiceBot_Logs_MainSection, validate=False)
|
||||
@ -80,9 +78,8 @@ def bot_logging(bot, logtype, logentry):
|
||||
|
||||
logmessage = "[" + logtype + "] " + logentry
|
||||
|
||||
if not check_bot_events(bot, ["connected"]):
|
||||
if bot.config.SpiceBot_Logs.logging_channel:
|
||||
bot.memory['SpiceBot_Logs_queue'].append(logmessage)
|
||||
if bot.config.SpiceBot_Logs.logging_channel:
|
||||
bot.memory['SpiceBot_Logs_queue'].append(logmessage)
|
||||
|
||||
stderr(logmessage)
|
||||
|
||||
|
||||
@ -7,6 +7,8 @@ import sopel
|
||||
from sopel.module import OP, ADMIN, VOICE, OWNER, HALFOP
|
||||
HOP = HALFOP
|
||||
|
||||
from sopel_modules.SpiceBot_Logs.Logs import bot_logging
|
||||
|
||||
import collections
|
||||
import re
|
||||
import os
|
||||
|
||||
Loading…
Reference in New Issue
Block a user