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