From 971f063b393e60bdfd5a5d27e6eda05ad0d60c07 Mon Sep 17 00:00:00 2001 From: LightZirconite Date: Mon, 10 Nov 2025 23:02:01 +0100 Subject: [PATCH] Refactor JobState initialization and update alert message formatting --- src/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1c55e8a..c3aeca0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -71,9 +71,7 @@ export class MicrosoftRewardsBot { this.accounts = [] this.utils = new Util() this.config = loadConfig() - if (this.config.jobState?.enabled !== false) { - this.accountJobState = new JobState(this.config) - } + // JobState will be initialized in initialize() method after validation this.browser = { func: new BrowserFunc(this), utils: new BrowserUtil(this) @@ -812,8 +810,8 @@ export class MicrosoftRewardsBot { const { ConclusionWebhook } = await import('./util/ConclusionWebhook') await ConclusionWebhook( this.config, - '🚨 Critical Security Alert', - `@everyone\n\n**Account:** ${email}\n**Issue:** ${reason}\n**Status:** All accounts paused pending review`, + '🚨 Critical Security Alert', + `**Account:** ${email}\n**Issue:** ${reason}\n**Status:** All accounts paused pending review`, undefined, DISCORD.COLOR_RED )