move bot from server/api to server