mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-10 17:26:17 +00:00
Refactor JobState initialization and update alert message formatting
This commit is contained in:
@@ -71,9 +71,7 @@ export class MicrosoftRewardsBot {
|
|||||||
this.accounts = []
|
this.accounts = []
|
||||||
this.utils = new Util()
|
this.utils = new Util()
|
||||||
this.config = loadConfig()
|
this.config = loadConfig()
|
||||||
if (this.config.jobState?.enabled !== false) {
|
// JobState will be initialized in initialize() method after validation
|
||||||
this.accountJobState = new JobState(this.config)
|
|
||||||
}
|
|
||||||
this.browser = {
|
this.browser = {
|
||||||
func: new BrowserFunc(this),
|
func: new BrowserFunc(this),
|
||||||
utils: new BrowserUtil(this)
|
utils: new BrowserUtil(this)
|
||||||
@@ -812,8 +810,8 @@ export class MicrosoftRewardsBot {
|
|||||||
const { ConclusionWebhook } = await import('./util/ConclusionWebhook')
|
const { ConclusionWebhook } = await import('./util/ConclusionWebhook')
|
||||||
await ConclusionWebhook(
|
await ConclusionWebhook(
|
||||||
this.config,
|
this.config,
|
||||||
'🚨 Critical Security Alert',
|
'🚨 Critical Security Alert',
|
||||||
`@everyone\n\n**Account:** ${email}\n**Issue:** ${reason}\n**Status:** All accounts paused pending review`,
|
`**Account:** ${email}\n**Issue:** ${reason}\n**Status:** All accounts paused pending review`,
|
||||||
undefined,
|
undefined,
|
||||||
DISCORD.COLOR_RED
|
DISCORD.COLOR_RED
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user