Remove "New Alert" title from ntfyBody object in index.js
This commit is contained in:
parent
bb642d1afa
commit
8064cf083c
2
index.js
2
index.js
|
@ -171,7 +171,6 @@ xmpp.on("stanza", (stanza) => {
|
|||
ntfyBody = {
|
||||
"topic": `${config.ntfy.prefix}${fromChannel}`,
|
||||
"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}`],
|
||||
"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}` }]
|
||||
|
@ -196,7 +195,6 @@ xmpp.on("stanza", (stanza) => {
|
|||
|
||||
// Send discord msg
|
||||
let embed = {
|
||||
title: "New Alert",
|
||||
description: bodyData.string,
|
||||
color: 0x00ff00,
|
||||
timestamp: product_id.timestamp,
|
||||
|
|
Loading…
Reference in a new issue