Add filter for TH, ELW and DLK

This commit is contained in:
Stefan080106
2023-12-29 13:46:04 +01:00
parent 0a942f8c23
commit 10b7701360

View File

@@ -89,7 +89,7 @@ if (config.activate_telegram) {
switch (msg.text) { switch (msg.text) {
case "/chatid": case "/chatid":
try { try {
bot.sendMessage(chatId, "Deine Chat ID ist: " + chatId); bot.sendMessage(chatId, "Deine Chat ID ist: " + chatId);
} catch (err) { } catch (err) {
@@ -192,7 +192,7 @@ async function main(data) {
await callWebhooks(data.title); 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); sendMessage("[INFO]: Einsatdepesche abgebrochen", messageIDs);
return; return;
} }