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) {
|
if ($PSScriptRoot.length -eq 0) {
|
||||||
$scriptroot = Get-Location
|
$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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue