feat: Implement internal scheduler for automatic daily execution with timezone detection

This commit is contained in:
2025-11-13 15:19:35 +01:00
parent 2959fc8c73
commit 3b06b4ae83
9 changed files with 637 additions and 80 deletions

View File

@@ -138,25 +138,12 @@
"host": "127.0.0.1"
},
// === SCHEDULING ===
// See docs/getting-started.md for setup instructions
// Automatic daily execution at specified time
// The bot will run once per day at the time you specify
// Time is based on YOUR computer/server timezone (automatically detected)
"scheduling": {
"enabled": false,
"type": "auto",
"cron": {
"schedule": "0 9 * * *",
"workingDirectory": "",
"nodePath": "",
"logFile": "",
"user": ""
},
"taskScheduler": {
"taskName": "Microsoft-Rewards-Bot",
"schedule": "09:00",
"frequency": "daily",
"workingDirectory": "",
"runAsUser": true,
"highestPrivileges": false
}
"enabled": false, // Set to true to enable automatic daily runs
"time": "09:00" // Time in 24h format (HH:MM) - e.g., "09:00" = 9 AM, "21:30" = 9:30 PM
},
// === UPDATES ===
"update": {