mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
IRC Events Log
This commit is contained in:
parent
29031582b0
commit
5e9b410ece
18
sopel_modules/SpiceBot/Channels.py
Normal file
18
sopel_modules/SpiceBot/Channels.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# coding=utf8
|
||||||
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
||||||
|
"""
|
||||||
|
This is the SpiceBot Logs system.
|
||||||
|
|
||||||
|
This Class stores logs in an easy to access manner
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
class BotChannels():
|
||||||
|
"""This Logs all channels known to the server"""
|
||||||
|
def __init__(self):
|
||||||
|
self.SpiceBot_Channels = {
|
||||||
|
"list": {}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
botchannels = BotChannels()
|
||||||
@ -8,6 +8,7 @@ This module contains references only for other modules to utilize.
|
|||||||
|
|
||||||
from .Logs import *
|
from .Logs import *
|
||||||
from .Events import *
|
from .Events import *
|
||||||
|
from .Channels import *
|
||||||
|
|
||||||
__author__ = 'Sam Zick'
|
__author__ = 'Sam Zick'
|
||||||
__email__ = 'sam@deathbybandaid.net'
|
__email__ = 'sam@deathbybandaid.net'
|
||||||
|
|||||||
@ -30,17 +30,6 @@ def configure(config):
|
|||||||
config.SpiceBot_Channels.configure_setting('chanignore', 'SpiceBot_Channels Ignore JOIN for channels')
|
config.SpiceBot_Channels.configure_setting('chanignore', 'SpiceBot_Channels Ignore JOIN for channels')
|
||||||
|
|
||||||
|
|
||||||
class BotChannels():
|
|
||||||
"""This Logs all channels known to the server"""
|
|
||||||
def __init__(self):
|
|
||||||
self.SpiceBot_Channels = {
|
|
||||||
"list": {}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
botchannels = BotChannels()
|
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
botlogs.log('SpiceBot_Channels', "Starting setup procedure")
|
botlogs.log('SpiceBot_Channels', "Starting setup procedure")
|
||||||
botevents.startup_add([botevents.BOT_CHANNELS])
|
botevents.startup_add([botevents.BOT_CHANNELS])
|
||||||
|
|||||||
1266
sopel_modules/SpiceBot_Logs/IRC_Events
Normal file
1266
sopel_modules/SpiceBot_Logs/IRC_Events
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user