modified to use bot repository