move lib to core, no more sys.path fucking @cybojenix

This commit is contained in:
Luke Rogers 2013-10-02 12:01:46 +13:00
parent ef48b81924
commit 7dc1daa69f
14 changed files with 911 additions and 4 deletions

View file

@ -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)