mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
logs migrate
This commit is contained in:
parent
a0a4ade9c3
commit
f19016db96
@ -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
|
||||
|
||||
@ -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
|
||||
@ -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'
|
||||
|
||||
@ -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):
|
||||
@ -11,6 +11,7 @@ from .Events import *
|
||||
from .Modules import *
|
||||
from .osd import *
|
||||
from .StartupMonologue import *
|
||||
from .Logs import *
|
||||
|
||||
|
||||
__author__ = 'Sam Zick'
|
||||
|
||||
@ -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'
|
||||
Loading…
Reference in New Issue
Block a user