Prints a counter like this to a $DISCORD_WEBHOOK_URL
every day:
Run the script one-off to make sure it works:
bun index.ts
Schedule it to run every day at 1pm on macOS:
bun make-launchd.ts
It saves state into a .sqlite file in the current directory.
Expects a .env file like this:
REPO=oven-sh/bun
GITHUB_TOKEN=ghp_1234567890
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/123/1234567890
Note that $GITHUB_TOKEN
is a personal access token, but it doesn't need any scopes authorized.