updates the bot to work from api