summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js2
-rw-r--r--mycelium-warning.xml1
2 files changed, 2 insertions, 1 deletions
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 @@
<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>