feat: add free rewards redemption feature; require phone number in account config

This commit is contained in:
2025-11-15 17:07:19 +01:00
parent a4a248b236
commit 697e81ee2a
10 changed files with 583 additions and 23 deletions

View File

@@ -49,6 +49,7 @@ export class MicrosoftRewardsBot {
public homePage!: Page
public currentAccountEmail?: string
public currentAccountRecoveryEmail?: string
public currentAccountPhoneNumber?: string
public queryEngine?: QueryDiversityEngine
public compromisedModeActive: boolean = false
public compromisedReason?: string
@@ -487,6 +488,7 @@ export class MicrosoftRewardsBot {
this.currentAccountEmail = account.email
// IMPROVED: Use centralized recovery email validation utility
this.currentAccountRecoveryEmail = normalizeRecoveryEmail(account.recoveryEmail)
this.currentAccountPhoneNumber = account.phoneNumber
const runNumber = (this.accountRunCounts.get(account.email) ?? 0) + 1
this.accountRunCounts.set(account.email, runNumber)
log('main', 'MAIN-WORKER', `Started tasks for account ${account.email}`)