From 8cb60ec77e342ee8e7166b944d0b90f1d599be63 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Wed, 15 Mar 2023 20:53:24 +0700 Subject: [PATCH] remove unused --- plugins/tps.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/tps.js b/plugins/tps.js index 67c95b4..d9269d8 100644 --- a/plugins/tps.js +++ b/plugins/tps.js @@ -17,7 +17,6 @@ function inject (bot, dcclient, config) { let nextIndex = 0 let timeLastTimeUpdate = -1 let timeGameJoined - let timeUpdatesTotal = 0 const interval = setInterval(() => { if (!enabled) return @@ -68,7 +67,6 @@ function inject (bot, dcclient, config) { tickRates[nextIndex] = clamp(20.0 / timeElapsed, 0.0, 20.0) nextIndex = (nextIndex + 1) % tickRates.length timeLastTimeUpdate = now - timeUpdatesTotal++ }) bot.on('end', () => clearInterval(interval))