remove unused

This commit is contained in:
ChomeNS 2023-03-15 20:53:24 +07:00
parent 0310622870
commit 8cb60ec77e

View file

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