mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09: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_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,7 +78,6 @@ 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)
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user