pass the bot object too