Update report_to_discord.ps1

This commit is contained in:
Lanta 2023-09-30 10:26:03 +02:00 committed by GitHub
parent 70c238b2cf
commit e0cc247648

View file

@ -1,4 +1,7 @@
. .\..\includes\ps1\lockfile.ps1
new-lock
if ($PSScriptRoot.length -eq 0) { if ($PSScriptRoot.length -eq 0) {
$scriptroot = Get-Location $scriptroot = Get-Location
@ -99,3 +102,4 @@ $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