Update report_to_discord.ps1
This commit is contained in:
parent
70c238b2cf
commit
e0cc247648
1 changed files with 5 additions and 1 deletions
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
. .\..\includes\ps1\lockfile.ps1
|
||||
|
||||
new-lock
|
||||
|
||||
if ($PSScriptRoot.length -eq 0) {
|
||||
$scriptroot = Get-Location
|
||||
|
|
@ -99,3 +102,4 @@ $payload = [PSCustomObject]@{
|
|||
}
|
||||
|
||||
Invoke-RestMethod -Uri $webhookurl -Method Post -Body ($payload | ConvertTo-Json) -ContentType 'Application/Json'
|
||||
remove-lock
|
||||
Loading…
Add table
Add a link
Reference in a new issue