the cleanup of bot.js