Client is using this setInterval() to call the bot script after particular time but it is not working

The client is using setInterval(() => {Chatbot Script}, 60002) method for calling bot script after every minute bot after this method configuration bot is not at all loading.Can anyone help us here how can we handle this scenario