wqebhooky final,lky
This commit is contained in:
+7
-6
@@ -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 }")
|
||||
|
||||
Reference in New Issue
Block a user