mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-18 16:53:57 +00:00
fix(bots/discord): attempt to fix sticky messages again
This commit is contained in:
@@ -31,8 +31,13 @@ withContext(on, 'messageCreate', async ({ discord, logger }, msg) => {
|
|||||||
store.forceTimerMs,
|
store.forceTimerMs,
|
||||||
) as NodeJS.Timeout
|
) as NodeJS.Timeout
|
||||||
else store.forceTimer.refresh()
|
else store.forceTimer.refresh()
|
||||||
// Force timer is already active, so we force send
|
} else {
|
||||||
} else store.send()
|
// Force timer is already active, so we clear the force timer
|
||||||
|
store.forceTimerActive = false
|
||||||
|
clearTimeout(store.forceTimer)
|
||||||
|
// and force send
|
||||||
|
store.send(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (!store.forceTimerActive) {
|
} else if (!store.forceTimerActive) {
|
||||||
// Both timers aren't active, so we start the timer
|
// Both timers aren't active, so we start the timer
|
||||||
|
|||||||
Reference in New Issue
Block a user