diff --git a/start.sh b/start.sh index 7a51ede..986376f 100644 --- a/start.sh +++ b/start.sh @@ -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}') diff --git a/update.sh b/update.sh index f3e4e97..fd0c23f 100644 --- a/update.sh +++ b/update.sh @@ -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!" \ No newline at end of file