Add filter for TH, ELW and DLK
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user