From 5612e5a37fff83c09b5e9f1065001a3223ae78c7 Mon Sep 17 00:00:00 2001 From: Tony <1414927+zfbx@users.noreply.github.com> Date: Sat, 15 Jan 2022 00:06:04 -0500 Subject: [PATCH] HOTFIX - update channel limitations --- optional addons/liveplayercount.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/optional addons/liveplayercount.js b/optional addons/liveplayercount.js index b9b89fd..9a258f9 100644 --- a/optional addons/liveplayercount.js +++ b/optional addons/liveplayercount.js @@ -10,12 +10,12 @@ * * This addon enables you to have a voice channel that updates constantly with the current number of players online * copy this into your `server/addons` folder and edit the voiceChannelId to the channel id you want to use then start your server + * + * DO NOT TRY TO CHANGE THE UPDATE RATE ANY LOWER - doing so will cause your IP to get restricted from the discord api */ class LivePlayerCount { constructor(z) { - // Seconds between updated (don't set less than 5) - this.timerDelay = 30; // Id for the voice channel name to update this.voiceChannelId = "000000000000000000"; @@ -29,7 +29,7 @@ class LivePlayerCount { async start() { setInterval(() => { this.syncChannel(); - }, 1000 * this.timerDelay); + }, 1000 * 60 * 5); } async syncChannel() {