Update bot.js

fixed callback function