diff --git a/index.js b/index.js index 5adbbd2..48ce211 100644 --- a/index.js +++ b/index.js @@ -54,7 +54,7 @@ const main = async () => { } catch (err) { console.error(`Unexpected error: ${err}`); } - setTimeout(main, 3000); // Run every 60 seconds + setTimeout(main, process.env.CHECK_INTERVAL * 1000); // Run every CHECK_INTERVAL seconds }; const startup = async () => {