Bot listens to the socket in a loop