mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
try this method
This commit is contained in:
parent
f81e3560dd
commit
947776e19e
@ -1,5 +1,4 @@
|
|||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
|
|
||||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
||||||
|
|
||||||
import sopel.module
|
import sopel.module
|
||||||
|
|||||||
@ -1,25 +1,6 @@
|
|||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
|
|
||||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
||||||
|
|
||||||
import sopel.module
|
|
||||||
from sopel.config.types import StaticSection, ValidatedAttribute
|
|
||||||
|
|
||||||
from sopel_modules.SpiceBot_SBTools import bot_logging
|
|
||||||
from sopel_modules.SpiceBot_Events.System import botevents
|
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
import spicemanip
|
|
||||||
|
|
||||||
|
|
||||||
# coding=utf8
|
|
||||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
||||||
|
|
||||||
__author__ = 'Sam Zick'
|
|
||||||
__email__ = 'sam@deathbybandaid.net'
|
|
||||||
__version__ = '0.1.1'
|
|
||||||
|
|
||||||
import sopel.module
|
import sopel.module
|
||||||
import sopel.tools
|
import sopel.tools
|
||||||
import sopel.config
|
import sopel.config
|
||||||
@ -123,10 +104,6 @@ class BotLogs():
|
|||||||
botlogs = BotLogs()
|
botlogs = BotLogs()
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
|
||||||
botlogs.log('SpiceBot_Logs', "Starting Setup Procedure")
|
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.event('001')
|
@sopel.module.event('001')
|
||||||
@sopel.module.rule('.*')
|
@sopel.module.rule('.*')
|
||||||
def join_log_channel(bot, trigger):
|
def join_log_channel(bot, trigger):
|
||||||
@ -147,12 +124,6 @@ def join_log_channel(bot, trigger):
|
|||||||
botlogs.SpiceBot_Logs["queue"] = []
|
botlogs.SpiceBot_Logs["queue"] = []
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
|
||||||
bot_logging(bot, 'SpiceBot_Logs', "Starting Setup Procedure")
|
|
||||||
botevents.startup_add([botevents.BOT_LOGS])
|
|
||||||
botevents.trigger(bot, botevents.BOT_LOGS, "SpiceBot_Logs")
|
|
||||||
|
|
||||||
|
|
||||||
def stdio_logs_fetch(bot):
|
def stdio_logs_fetch(bot):
|
||||||
|
|
||||||
stdio_ignore = []
|
stdio_ignore = []
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
|
|
||||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
||||||
|
|
||||||
import sopel.module
|
import sopel.module
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user