diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-26 17:22:54 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-26 17:22:54 +0200 |
commit | 204045fadad21ecbe4f646effdb8208f86bd3d5d (patch) | |
tree | 334c0919dfb54c3908008f3ac0f64be9c5c7a794 | |
parent | 5524b890f8718e3e42bf136842133d2de589a8c2 (diff) | |
download | mycelium-warning-1.1.0.tar.gz mycelium-warning-1.1.0.tar.bz2 mycelium-warning-1.1.0.zip |
Add check interval setting1.1.0
-rw-r--r-- | app.js | 2 | ||||
-rw-r--r-- | mycelium-warning.xml | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -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 @@ <Config Name="Hypixel API key" Target="HYPIXEL_API_KEY" Default="" Mode="" Description="Your Hypixel API key" Type="Variable" Display="always" Required="true" Mask="true"/> <Config Name="Discord WebHook URL" Target="DISCORD_WEBHOOK_URL" Default="" Mode="" Description="Where to send your pings too. Must be a webhook." Type="Variable" Display="always" Required="true" Mask="true"/> + <Config Name="Check Interval" Target="CHECK_INTERVAL" Default="600" Mode="" Description="How often to query the Hypixel API" Type="Variable" Display="always" Required="false" Mask="false"/> </Container> |