From 9d160e9b9d41c42f7348452497578664a607b258 Mon Sep 17 00:00:00 2001 From: chytrex Date: Thu, 24 Jul 2025 17:07:07 +0200 Subject: [PATCH] log-parser now sends password also, to have full informaton about how to connect. --- log-parser.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/log-parser.sh b/log-parser.sh index 8eb2165..24aee09 100755 --- a/log-parser.sh +++ b/log-parser.sh @@ -9,6 +9,7 @@ conf_file="valheim-server.ini" . ./lib_ini.sh server_path=$(ini_read "$conf_file" "server" "srvpath") +server_pass=$(ini_read "$conf_file" "server" "srvpass") bot_nr=$(ini_read "$conf_file" "parser" "botnr") targ_nr=$(ini_read "$conf_file" "parser" "targnr") @@ -25,7 +26,7 @@ while true; do elif [[ ! "$check" == $(cat $jcfile) ]]; then echo "$check" > "$jcfile" datum=$(date +"[%d.%m.%Y %H:%M] ") - message="$datum Valheim join code je: $check" + message="$datum Valheim join code je: $check, s heslem $server_pass" signal-cli -u "$bot_nr" send -m "$message" "$targ_nr" &> /dev/null signal-cli -u "$bot_nr" receive &> /dev/null fi