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))