move lib to core, no more sys.path fucking @cybojenix
This commit is contained in:
parent
ef48b81924
commit
7dc1daa69f
14 changed files with 911 additions and 4 deletions
|
@ -66,17 +66,17 @@ class Bot(object):
|
|||
|
||||
def get_config(self):
|
||||
"""create and return the config object"""
|
||||
return config.Config(self.name, self.logger)
|
||||
return config.Config(self.logger)
|
||||
|
||||
|
||||
def get_logger(self):
|
||||
"""create and return the logger object"""
|
||||
# create logger
|
||||
logger = logging.getLogger(self.name)
|
||||
logger = logging.getLogger("cloudbot")
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
# add a file handler
|
||||
log_name = "{}.log".format(self.name)
|
||||
log_name = "bot.log"
|
||||
fh = logging.FileHandler(log_name)
|
||||
fh.setLevel(logging.DEBUG)
|
||||
|
||||
|
|
Reference in a new issue