fixed some garbage translations ^^

Signed-off-by: hax <hax@lainlounge.xyz>
This commit is contained in:
h@x 2025-01-05 17:35:50 +00:00
parent 6c56f2ed30
commit 862cfe42be

View file

@ -15,8 +15,8 @@ CURL_OPTS=(
)
# Telegram-Bot-Configuration
TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN:-<Ihr-Bot-Token>}"
TELEGRAM_CHAT_ID="${TELEGRAM_CHAT_ID:-<Ihre-Chat-ID>}"
TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN:-<Your-Bot-Token>}"
TELEGRAM_CHAT_ID="${TELEGRAM_CHAT_ID:-<Your-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..."