3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-06 18:47:20 +00:00

refactor: remove Timeout imports and constructor syntax sugar

This commit is contained in:
almeidx 2025-06-01 23:38:49 +01:00
parent 62da0a6e34
commit f607ad424b
No known key found for this signature in database
20 changed files with 32 additions and 42 deletions

View file

@ -3,8 +3,11 @@
*/
export class DecayingCounter {
protected value = 0;
protected decayInterval: number;
constructor(decayInterval: number) {
this.decayInterval = decayInterval;
constructor(protected decayInterval: number) {
setInterval(() => {
this.value = Math.max(0, this.value - 1);
}, decayInterval);