Added logging to the bot template