Updated bot to be able so that it is able to run continuously