payloud empty #227
1 changed files with 6 additions and 0 deletions
|
|
@ -69,7 +69,13 @@ function send-discord-losers {
|
||||||
$payload = [PSCustomObject]@{
|
$payload = [PSCustomObject]@{
|
||||||
content = $content
|
content = $content
|
||||||
}
|
}
|
||||||
|
if($payload.content -eq "") {
|
||||||
|
$payload = [PSCustomObject]@{
|
||||||
|
content = "Nothing to report"
|
||||||
|
}
|
||||||
|
}
|
||||||
Invoke-RestMethod -Uri $webhookurl_losers -Method Post -Body ($payload | ConvertTo-Json) -ContentType 'Application/Json'
|
Invoke-RestMethod -Uri $webhookurl_losers -Method Post -Body ($payload | ConvertTo-Json) -ContentType 'Application/Json'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$map_map = @{
|
$map_map = @{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue