pass bot object through