Modified bot.py to work with the new logging library.