From 204045fadad21ecbe4f646effdb8208f86bd3d5d Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 26 May 2024 17:22:54 +0200 Subject: Add check interval setting --- app.js | 2 +- mycelium-warning.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index a319dcd..05b7400 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,6 @@ const HYPIXEL_API_KEY =process.env.HYPIXEL_API_KEY; const DISCORD_WEBHOOK_URL =process.env.DISCORD_WEBHOOK_URL; -const CHECK_INTERVAL = 60 * 10; // 10 minutes +const CHECK_INTERVAL = parseInt(process.env.CHECK_INTERVAL); // 10 minutes const WARN_AFTER = 60 * 60 * 9; // 9 hours const profiles = [ diff --git a/mycelium-warning.xml b/mycelium-warning.xml index 67e1fbf..936c5f7 100644 --- a/mycelium-warning.xml +++ b/mycelium-warning.xml @@ -19,4 +19,5 @@ + -- cgit