wqebhooky final,lky

This commit is contained in:
2026-04-22 22:25:42 -06:00
parent 4d8aa10f13
commit 5cb1d322a1
2 changed files with 13 additions and 7 deletions
+7 -6
View File
@@ -2,20 +2,21 @@
set -e # faiulure is not tolerated here
## easy to add ids~
vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03')
webhook_file="/home/princesspi/.discord_url"
tag_file="/home/princesspi/.discord_tag"
username="[DЯΣΛMMΛKΣЯ]"
send_discord_webhook() {
username="[DЯΣΛMMΛKΣЯ]"
webhook_url="$(cat /home/princesspi/.discord_url)"
tag="$(cat /home/princesspi/.discord_tag)"
webhook_url="$(cat \"$webhook_file\")"
tag="$(cat \"$tag_file\")"
# send the webhook post
curl -sS -X POST \
-H "Content-Type: application/json" \
-d "{\"username\":\"$username\",\"content\":\"FUZZASZZZZ ${tag}\"}" \
-d "{\"username\":\"$username\",\"content\":\"$1 FUZZASZZZZ ${tag}\"}" \
"$webhook_url"
}
send_discord_webhook
while true; do #infinite loop
# scan for those vendor ids
blescan=$(bluetoothctl -t 5 scan on | awk '{print $3}' | grep "${vendor_ids[@]/#/-e }")