diff --git a/app.js b/app.js index f89bfa8f..18526a1b 100644 --- a/app.js +++ b/app.js @@ -21,6 +21,11 @@ app.get('/health', (req, res) => res.send({"status": "OK", "time": new Date()})) var port = process.env.PORT || 8080; app.listen(port); +// setInterval(callback, delay, [arg1, arg2, ...]) +// callback: The function to execute at each interval. +// delay: Time in milliseconds between each execution of the callback. +// arg1, arg2, ... (optional): Additional arguments passed to the callback function. + setInterval(function(str1, str2) { var text = makeid(40); var ran = Math.random() @@ -34,7 +39,7 @@ setInterval(function(str1, str2) { //console.log(logs[i]) i++ if (i == logs.length) i = 0 -}, 1, "Hello.", "How are you?"); +}, 2000, "Hello.", "How are you?"); function makeid(length) { var text = "";