logs migrate

This commit is contained in:
deathbybandaid 2019-05-31 15:26:27 -04:00
parent a0a4ade9c3
commit f19016db96
6 changed files with 16 additions and 21 deletions

View File

@ -18,6 +18,10 @@ from .osd import SopelWrapperOSD, ToolsOSD, SopelOSD, SpiceBot_OSD
def setup(bot):
logs.log('SpiceBot_Logs', "Starting Setup Procedure")
events.startup_add([events.BOT_LOGS])
events.trigger(bot, events.BOT_LOGS, "SpiceBot_Logs")
# Inject OSD
logs.log('SpiceBot_OSD', "Implanting OSD function into bot")
bot.osd = SopelOSD.osd

View File

@ -1,6 +1,10 @@
# coding=utf-8
# coding=utf8
from __future__ import unicode_literals, absolute_import, division, print_function
"""
This is the SpiceBot Logs System
"""
# sopel imports
import sopel.module
import spicemanip

View File

@ -10,6 +10,7 @@ from .Commands import *
from .Channels import *
from .Database import *
from .Uptime import *
from .Logs import *
from .Runtime_Controls import *
__author__ = 'Sam Zick'

View File

@ -1,19 +1,13 @@
# coding=utf-8
# coding=utf8
from __future__ import unicode_literals, absolute_import, division, print_function
import sopel.module
import sopel.tools
import sopel.config
"""
This is the SpiceBot Logs system.
"""
import sopel
import sopel_modules.SpiceBot as SpiceBot
def setup(bot):
SpiceBot.logs.log('SpiceBot_Logs', "Starting Setup Procedure")
SpiceBot.events.startup_add([SpiceBot.events.BOT_LOGS])
SpiceBot.events.trigger(bot, SpiceBot.events.BOT_LOGS, "SpiceBot_Logs")
@sopel.module.event(SpiceBot.events.RPL_WELCOME)
@sopel.module.rule('.*')
def join_log_channel(bot, trigger):

View File

@ -11,6 +11,7 @@ from .Events import *
from .Modules import *
from .osd import *
from .StartupMonologue import *
from .Logs import *
__author__ = 'Sam Zick'

View File

@ -1,9 +0,0 @@
# coding=utf8
from __future__ import unicode_literals, absolute_import, division, print_function
from .Queue import *
from .Logs_Command import *
__author__ = 'Sam Zick'
__email__ = 'sam@deathbybandaid.net'
__version__ = '0.1.1'