From 10b7701360c3e3c9580d961de144fb1e05a94741 Mon Sep 17 00:00:00 2001 From: Stefan080106 Date: Fri, 29 Dec 2023 13:46:04 +0100 Subject: [PATCH] Add filter for TH, ELW and DLK --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 4193fd7..844e768 100644 --- a/src/index.js +++ b/src/index.js @@ -89,7 +89,7 @@ if (config.activate_telegram) { switch (msg.text) { - case "/chatid": + case "/chatid": try { bot.sendMessage(chatId, "Deine Chat ID ist: " + chatId); } catch (err) { @@ -192,7 +192,7 @@ async function main(data) { await callWebhooks(data.title); - if (data.title.includes("Probealarm")) { + if (data.title.includes("Probealarm") || data.title.includes("TH") || data.title.includes("ELW") || data.title.includes("Drehleiter")) { sendMessage("[INFO]: Einsatdepesche abgebrochen", messageIDs); return; }