diff --git a/discord/report_to_discord.ps1 b/discord/report_to_discord.ps1 index c246261..d4e2f11 100644 --- a/discord/report_to_discord.ps1 +++ b/discord/report_to_discord.ps1 @@ -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' \ No newline at end of file +Invoke-RestMethod -Uri $webhookurl -Method Post -Body ($payload | ConvertTo-Json) -ContentType 'Application/Json' +remove-lock \ No newline at end of file