minor changes to bot.js