Working code with one bot