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()
|
||||
while True:
|
||||
if not next(conn):
|
||||
print("Calling sys.exit()...")
|
||||
self.stream_handler("Calling sys.exit()...", level="warning")
|
||||
sys.exit()
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
import os
|
||||
import botconfig
|
||||
from tools import logger
|
||||
|
||||
MODULES = {}
|
||||
|
||||
@ -15,7 +16,7 @@ for modfile in os.listdir("modules"):
|
||||
|
||||
modfile = modfile[:-3]
|
||||
|
||||
print("Loading module "+modfile)
|
||||
logger(None)("Loading module "+modfile)
|
||||
|
||||
MODULES[modfile] = getattr(__import__("modules."+modfile), modfile)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user