Remove "New Alert" title from ntfyBody object in index.js

This commit is contained in:
Christopher Cookman 2024-05-08 10:46:25 -06:00
parent bb642d1afa
commit 8064cf083c
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -171,7 +171,6 @@ xmpp.on("stanza", (stanza) => {
ntfyBody = { ntfyBody = {
"topic": `${config.ntfy.prefix}${fromChannel}`, "topic": `${config.ntfy.prefix}${fromChannel}`,
"message": bodyData.string, "message": bodyData.string,
"title": "New Alert",
"tags": [`Timestamp: ${product_id.timestamp}`, `Station: ${product_id.station}`, `WMO: ${product_id.wmo}`, `PIL: ${product_id.pil}`, `Channel: ${fromChannel}`], "tags": [`Timestamp: ${product_id.timestamp}`, `Station: ${product_id.station}`, `WMO: ${product_id.wmo}`, `PIL: ${product_id.pil}`, `Channel: ${fromChannel}`],
"priority": 3, "priority": 3,
"actions": [{ "action": "view", "label": "Product", "url": bodyData.url }, { "action": "view", "label": "Product Text", "url": `https://mesonet.agron.iastate.edu/api/1/nwstext/${product_id_raw}` }] "actions": [{ "action": "view", "label": "Product", "url": bodyData.url }, { "action": "view", "label": "Product Text", "url": `https://mesonet.agron.iastate.edu/api/1/nwstext/${product_id_raw}` }]
@ -196,7 +195,6 @@ xmpp.on("stanza", (stanza) => {
// Send discord msg // Send discord msg
let embed = { let embed = {
title: "New Alert",
description: bodyData.string, description: bodyData.string,
color: 0x00ff00, color: 0x00ff00,
timestamp: product_id.timestamp, timestamp: product_id.timestamp,