From 927387ffb5e6a754d993448aae7c92fd017cc1a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Schimmelpfennig?= Date: Wed, 27 Mar 2024 19:58:36 +0100 Subject: [PATCH] add env variable for interval time --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 47285a4..4d1b26e 100644 --- a/main.js +++ b/main.js @@ -92,4 +92,4 @@ async function fetchNewPosts() { fetchNewPosts(); // Fetch new posts every 5 minutes (adjust as needed) -setInterval(fetchNewPosts, 2 * 60 * 1000); +setInterval(fetchNewPosts, (process.env.INTERVAL_MINUTES ?? 5) * 60 * 1000);