Watch a Hacker News story for new comments and send Pushover notifications when replies appear.
-
Copy the sample environment file:
cp .env.sample .env
-
Fill in your values in
.env:HN_STORY_ID: the Hacker News story id to watchPUSHOVER_APP_TOKEN: your Pushover application tokenPUSHOVER_USER_KEY: your Pushover user key
-
Install dependencies:
pnpm install
-
Start the watcher:
pnpm start
You can also pass the story id as the first command-line argument instead of using HN_STORY_ID.
- The script seeds the existing comment tree first, then watches for new comments.
- A startup Pushover message is sent to confirm notifications are working.