From d46080166c4423be2bfd47ee783e2bd09ef6a47a Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:56:25 +0000 Subject: [PATCH] Update main.ps1 --- Speech-to-Discord/main.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Speech-to-Discord/main.ps1 b/Speech-to-Discord/main.ps1 index 1e4a166..4a2e10d 100644 --- a/Speech-to-Discord/main.ps1 +++ b/Speech-to-Discord/main.ps1 @@ -8,7 +8,10 @@ SETUP #> -$dc = 'WEBHOOK_HERE' # can be shortened +$dc = "$dc" +if ($dc.Length -lt 120){ + $dc = ("https://discord.com/api/webhooks/" + "$dc") +} Add-Type -AssemblyName System.Speech $speech = New-Object System.Speech.Recognition.SpeechRecognitionEngine