Skip to content

Commit

Permalink
HOTFIX - update channel limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
zfbx committed Jan 15, 2022
1 parent 7f961c7 commit 5612e5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions optional addons/liveplayercount.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -29,7 +29,7 @@ class LivePlayerCount {
async start() {
setInterval(() => {
this.syncChannel();
}, 1000 * this.timerDelay);
}, 1000 * 60 * 5);
}

async syncChannel() {
Expand Down

0 comments on commit 5612e5a

Please sign in to comment.