From 3661cd34bf29621722deb3515184862c133f45ce Mon Sep 17 00:00:00 2001 From: violet Date: Tue, 26 Aug 2025 11:02:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20NTFY=20Action=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sendNotify.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sendNotify.js b/sendNotify.js index 91b95c4..24693b2 100644 --- a/sendNotify.js +++ b/sendNotify.js @@ -144,6 +144,7 @@ let NTFY_URL = ''; let NTFY_TOKEN = ''; let NTFY_TOPIC = ''; let NTFY_PRIORITY = 3; +let NTFY_ACTIONS = ''; // =======================================BncrBot通知设置区域============================================== //BncrHost 填写BncrHost地址,如https://192.168.31.192:9090 @@ -748,6 +749,9 @@ async function sendNotify(text, desp, params = {}, author = "",strsummary="") { if (process.env["NTFY_PRIORITY" + UseGroupNotify]) { NTFY_PRIORITY = process.env["NTFY_PRIORITY" + UseGroupNotify]; } + if (process.env["NTFY_ACTIONS" + UseGroupNotify]) { + NTFY_ACTIONS = process.env["NTFY_ACTIONS" + UseGroupNotify]; + } if (process.env["BncrHost" + UseGroupNotify]) { BncrHost = process.env["BncrHost" + UseGroupNotify]; } @@ -1295,6 +1299,7 @@ function ntfyNotify(text, desp) { 'Icon': 'https://user-images.githubusercontent.com/22700758/191449379-f9f56204-0e31-4a16-be5a-331f52696a73.png', 'Title': encodeRFC2047(text), 'Priority': `${NTFY_PRIORITY}`, + 'Actions': `${NTFY_ACTIONS}`, } }; console.log('ntfy options:', options); // 打印 options 内容