Microsoft-Rewards-Script
Microsoft-Rewards-Script copied to clipboard
NTFY support
PR adds optional and user-configurable NTFY (https://ntfy.sh/) push notification support using 1.5.2 main as the base. Feature is off/disabled by default.
Summary
Optionally send customizable push notifications that are based on keywords in the logs (e.g., started, completed, points earned, major errors), with emoji and priority tag support for logs, warnings, and errors.
Updates to
- README - setup instructions, including notification customization options (e.g., emoji, custom keyword support to trigger notifications), and config table updates.
- index.ts - add await to the logs for completed items to properly generate the notification
- Logger.ts - add NTFY support, and support for custom key words to trigger notifications (based on LOG, WARN, and ERROR)
- Config.ts - parses the new config options
- config.json - optionally enable NTFY, specify a topic, and add authentication tokens
Added new
- Ntfy.ts
Testing Notes
No breaking changes in my personal usage. Tested in a headless docker linux environment using v.1.5.2, parallel=true (tested true and false), clusters=2.
Closes FR #90 (myself)