mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-09 00:56:16 +00:00
795 B
795 B
Scheduling
What it does
Runs the bot automatically at set times.
How to use
- Turn on scheduling in
src/config.jsoncunderscheduling.enabled. - Choose a time using the cron or Task Scheduler fields already in the config.
- Leave the machine or container running so the schedule can trigger.
- Check the console after start: it prints the next run time. If you close the window or stop the container, the scheduler stops.
- Serverless hosts (e.g., Vercel) will not keep the scheduler alive; run on a machine or container that stays on. Use Vercel only for the API endpoints (like error reporting), not for scheduled runs.
Example
{
"scheduling": {
"enabled": true,
"cron": { "schedule": "0 9 * * *" }
}
}