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..."