aboutsummaryrefslogtreecommitdiff
path: root/IRCBot.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-08-28 12:23:57 +0100
committerGravatar jesopo2018-08-28 12:23:57 +0100
commite5a5fa5c4b40918247be8486d27a1676b6d2b044 (patch)
tree70e61a968a20134b01ea4e4f5611e4e254df06ae /IRCBot.py
parentPrevent users sending coins to themselves (diff)
signature
modules/logging.py -> IRCLogging.py; IRCLog.py -> IRCBuffer.py; change logging
to be an object on the server object instead of an event call
Diffstat (limited to 'IRCBot.py')
-rw-r--r--IRCBot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/IRCBot.py b/IRCBot.py
index c178a4f3..7d15cd4d 100644
--- a/IRCBot.py
+++ b/IRCBot.py
@@ -1,5 +1,5 @@
import os, select, sys, threading, time, traceback
-import EventManager, IRCServer, ModuleManager, Timer
+import EventManager, IRCLogging, IRCServer, ModuleManager, Timer
class Bot(object):
def __init__(self):
@@ -13,6 +13,7 @@ class Bot(object):
self.poll = select.epoll()
self.modules = ModuleManager.ModuleManager(self)
self.events = EventManager.EventHook(self)
+ self.log = IRCLogging.Log(self)
self.timers = []
self.events.on("timer").on("reconnect").hook(self.reconnect)
self.events.on("boot").on("done").hook(self.setup_timers)