config loading, data directory, more logging

This commit is contained in:
Luke Rogers 2013-10-01 20:34:48 +13:00
parent 74cd20c55d
commit 00e794292a
4 changed files with 35 additions and 11 deletions

View file

@ -23,9 +23,7 @@ eval(compile(open(os.path.join('core', 'reload.py'), 'U').read(),
reload(init=True)
bot.persist_dir = os.path.abspath('persist')
if not os.path.exists(bot.persist_dir):
os.mkdir(bot.persist_dir)
print 'Connection(s) made, starting main loop.'