From 862cfe42be40c2caaeef8ec7bb723f9cb09f7361 Mon Sep 17 00:00:00 2001 From: hax Date: Sun, 5 Jan 2025 17:35:50 +0000 Subject: [PATCH] fixed some garbage translations ^^ Signed-off-by: hax --- sitechecks.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sitechecks.sh b/sitechecks.sh index f631300..2744c61 100644 --- a/sitechecks.sh +++ b/sitechecks.sh @@ -15,8 +15,8 @@ CURL_OPTS=( ) # Telegram-Bot-Configuration -TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN:-}" -TELEGRAM_CHAT_ID="${TELEGRAM_CHAT_ID:-}" +TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN:-}" +TELEGRAM_CHAT_ID="${TELEGRAM_CHAT_ID:-}" # Function: Send Telegram-Messages send_telegram_message() { @@ -75,7 +75,7 @@ process_telegram_updates() { if [[ "$text" == /check* ]]; then url=$(echo "$text" | awk '{print $2}') if [[ -z "$url" ]]; then - send_telegram_message "$chat_id" "❗ Fehler: Please provide a valid URL after /check." + send_telegram_message "$chat_id" "❗ Error: Please provide a valid URL after /check." else status=$(check_site "$url") description=$(http_status_description "$status") @@ -116,7 +116,7 @@ HTTP-Status: $status ($description)" done } -# Hauptteil +# Main case "$1" in listen) echo "Start Telegram-Bot-Listeners..."