commit
16b659dd8b
2 changed files with 10 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
. .\..\includes\ps1\lockfile.ps1
|
||||
|
||||
new-lock
|
||||
|
||||
if ($PSScriptRoot.length -eq 0) {
|
||||
$scriptroot = Get-Location
|
||||
|
|
@ -151,3 +154,5 @@ $newJson = $player_matches | ConvertTo-Json -Depth 100
|
|||
|
||||
# Display the updated JSON
|
||||
$newJson | out-file "$scriptroot/../data/player_matches.json"
|
||||
|
||||
remove-lock
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue