Added webhook name and auto git stash to updater.

This commit is contained in:
2023-05-18 22:02:19 +02:00
parent df8788ed95
commit 7f29a6cb96
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ fi
function send_webhook() {
local message="$1"
curl --silent -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"$message\"}" "$webhook"
curl --silent -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"$message\", \"username\": \"mcr-bot\"}" "$webhook"
}
vpns=$(nmcli connection show | grep vpn | awk '{print $1}')

View File

@@ -1,6 +1,6 @@
sudo dnf up -y
git pull
cd Microsoft-Rewards-bot && git pull
git stash && git pull
cd Microsoft-Rewards-bot && git stash && git pull
clear
cd .. && chmod +x ./*.sh
echo "Update done!"