fixed some garbage translations ^^
Signed-off-by: hax <hax@lainlounge.xyz>
This commit is contained in:
parent
6c56f2ed30
commit
862cfe42be
1 changed files with 4 additions and 4 deletions
|
|
@ -15,8 +15,8 @@ CURL_OPTS=(
|
||||||
)
|
)
|
||||||
|
|
||||||
# Telegram-Bot-Configuration
|
# Telegram-Bot-Configuration
|
||||||
TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN:-<Ihr-Bot-Token>}"
|
TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN:-<Your-Bot-Token>}"
|
||||||
TELEGRAM_CHAT_ID="${TELEGRAM_CHAT_ID:-<Ihre-Chat-ID>}"
|
TELEGRAM_CHAT_ID="${TELEGRAM_CHAT_ID:-<Your-Chat-ID>}"
|
||||||
|
|
||||||
# Function: Send Telegram-Messages
|
# Function: Send Telegram-Messages
|
||||||
send_telegram_message() {
|
send_telegram_message() {
|
||||||
|
|
@ -75,7 +75,7 @@ process_telegram_updates() {
|
||||||
if [[ "$text" == /check* ]]; then
|
if [[ "$text" == /check* ]]; then
|
||||||
url=$(echo "$text" | awk '{print $2}')
|
url=$(echo "$text" | awk '{print $2}')
|
||||||
if [[ -z "$url" ]]; then
|
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
|
else
|
||||||
status=$(check_site "$url")
|
status=$(check_site "$url")
|
||||||
description=$(http_status_description "$status")
|
description=$(http_status_description "$status")
|
||||||
|
|
@ -116,7 +116,7 @@ HTTP-Status: $status ($description)"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Hauptteil
|
# Main
|
||||||
case "$1" in
|
case "$1" in
|
||||||
listen)
|
listen)
|
||||||
echo "Start Telegram-Bot-Listeners..."
|
echo "Start Telegram-Bot-Listeners..."
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue