feat: update README and SchedulerManager for improved automatic scheduling configuration

This commit is contained in:
2025-11-04 20:54:10 +01:00
parent 014beda152
commit 8e1be00618
3 changed files with 10 additions and 60 deletions

View File

@@ -130,11 +130,9 @@ export class MicrosoftRewardsBot {
this.accountJobState = new JobState(this.config)
}
// Setup automatic scheduler if enabled
if (this.config.scheduling?.enabled) {
const scheduler = new SchedulerManager(this.config)
await scheduler.setup()
}
// Setup or remove automatic scheduler based on config
const scheduler = new SchedulerManager(this.config)
await scheduler.setup()
}
private shouldSkipAccount(email: string, dayKey: string): boolean {