more tweaks to bot.js