Open mgrimace opened 3 months ago
Feel free to make a PR with this implemented.
Feel free to make a PR with this implemented.
I've been trying to get it working, but no luck on my end. My goal is to add NTFY support, which is basically the same as discord webhook, but notifications can go directly to NTFY (web/app/etc) vs., Discord. It's here: https://www.npmjs.com/package/ntfy.
Apprise itself is a bigger job, but would enable notifications to any service, but personally my own use is just NTFY which should be easier.
Apprise is a flexible notification service that allows for not only Discord notifications, but basically notifications to pretty well any service. This would mean that you wouldn't have to implement individual notification services for folks.
A sample Webhook.ts could look like:
With a sample config like:
Notifications follow the format: https://github.com/caronc/apprise?tab=readme-ov-file#supported-notifications for example, Discord would be:
discord://webhook_id/webhook_token
I'm not making a PR because I fundamentally don't understand Node.js nor how to install apprise as a dependency within the actual script itself to enable this functionality. I'm reading up where I can, and in the meantime I'm hoping it would be relatively straightforward to implement, and would enable a lot more flexibility with notifications/logging, etc. I fully recognize the original author may have zero need for this, and I'm hoping anyone else knowledgeable could contribute.