Adding a parameter for the URLs for the Notification URLs of Services.

This commit is contained in:
2025-10-29 23:49:48 +01:00
parent a57e4efd4c
commit 4bbda5dcf8
2 changed files with 29 additions and 6 deletions

View File

@@ -90,7 +90,14 @@ async function events_check_for_notification() {
for ( const ev of list_of_events ) {
console.log("loop list_of_events - ev: " + [ ev.uid, ev.title, ev.date_at, "notification: " + ev.notification ].join( ", " ) );
console.log("loop list_of_events - ev 'title': " + ev.get_title() );
await sendNotification( ev.get_title(), ev.get_body() );
const notificationOptions = {
ntfy: null,
discord: {
avatar_url: ( process.env.dc_avatar_url as string),
botname: ( process.env.dc_botname as string)
}
};
await sendNotification( ev.get_title(), ev.get_body(), notificationOptions );
if ( ev.notification == "removed" ) {
ev.set_deleted( db );
}