Function getBotByName