Add timestamps in the client and module loader.
This commit is contained in:
parent
07a684465e
commit
26c81c2c03
@ -289,6 +289,6 @@ class IRCClient(object):
|
|||||||
conn = self.connect()
|
conn = self.connect()
|
||||||
while True:
|
while True:
|
||||||
if not next(conn):
|
if not next(conn):
|
||||||
print("Calling sys.exit()...")
|
self.stream_handler("Calling sys.exit()...", level="warning")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import botconfig
|
import botconfig
|
||||||
|
from tools import logger
|
||||||
|
|
||||||
MODULES = {}
|
MODULES = {}
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ for modfile in os.listdir("modules"):
|
|||||||
|
|
||||||
modfile = modfile[:-3]
|
modfile = modfile[:-3]
|
||||||
|
|
||||||
print("Loading module "+modfile)
|
logger(None)("Loading module "+modfile)
|
||||||
|
|
||||||
MODULES[modfile] = getattr(__import__("modules."+modfile), modfile)
|
MODULES[modfile] = getattr(__import__("modules."+modfile), modfile)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user