Update report_to_discord.ps1

This commit is contained in:
Lanta 2023-09-30 10:26:03 +02:00 committed by GitHub
parent 3e6a1f4ed1
commit d097609b73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,7 @@
. .\..\includes\ps1\lockfile.ps1
new-lock
if ($PSScriptRoot.length -eq 0) {
$scriptroot = Get-Location
@ -98,4 +101,5 @@ $payload = [PSCustomObject]@{
}
Invoke-RestMethod -Uri $webhookurl -Method Post -Body ($payload | ConvertTo-Json) -ContentType 'Application/Json'
Invoke-RestMethod -Uri $webhookurl -Method Post -Body ($payload | ConvertTo-Json) -ContentType 'Application/Json'
remove-lock