From 7a9e6cffeab4940921686dc1fe12cde15d863f5b Mon Sep 17 00:00:00 2001 From: Carter Date: Mon, 16 Feb 2026 22:20:47 -0600 Subject: [PATCH] perf(bot): don't update blocked every tick --- apps/bot/src/structures/BlockedUser.ts | 2 +- apps/bot/src/structures/BlockedWord.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/bot/src/structures/BlockedUser.ts b/apps/bot/src/structures/BlockedUser.ts index befe56bb..8c935778 100644 --- a/apps/bot/src/structures/BlockedUser.ts +++ b/apps/bot/src/structures/BlockedUser.ts @@ -17,7 +17,7 @@ export class BlockedUserModule { @inject(Client) protected readonly client: Client, ) { void this.refresh(); - this._interval = setInterval(this.refresh.bind(this), 0); + this._interval = setInterval(this.refresh.bind(this), 60_000); } /** diff --git a/apps/bot/src/structures/BlockedWord.ts b/apps/bot/src/structures/BlockedWord.ts index 6b555b41..4f0518a9 100644 --- a/apps/bot/src/structures/BlockedWord.ts +++ b/apps/bot/src/structures/BlockedWord.ts @@ -11,7 +11,7 @@ export class BlockedWordModule { public constructor(@inject(kSQL) protected readonly sql: Sql) { void this.refresh(); - this._interval = setInterval(this.refresh.bind(this), 0); + this._interval = setInterval(this.refresh.bind(this), 60_000); } /**