diff options
| author | 2018-08-28 12:23:57 +0100 | |
|---|---|---|
| committer | 2018-08-28 12:23:57 +0100 | |
| commit | e5a5fa5c4b40918247be8486d27a1676b6d2b044 (patch) | |
| tree | 70e61a968a20134b01ea4e4f5611e4e254df06ae /IRCBot.py | |
| parent | Prevent 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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
