Fixed logbot.py a bit