fix #231
1 changed files with 3 additions and 3 deletions
|
|
@ -101,10 +101,10 @@ catch {
|
||||||
}
|
}
|
||||||
write-output $player_matches
|
write-output $player_matches
|
||||||
write-output $new_win_matches
|
write-output $new_win_matches
|
||||||
$new_win_matches = $player_matches.new_win_matches
|
$new_win_matches = $player_matches[-2].new_win_matches
|
||||||
|
|
||||||
# Gebruik nu de lijst van nieuwe verloren matches uit het JSON-bestand
|
# Gebruik nu de lijst van nieuwe verloren matches uit het JSON-bestand
|
||||||
$new_loss_matches = $player_matches.new_loss_matches
|
$new_loss_matches = $player_matches[-1].new_loss_matches
|
||||||
|
|
||||||
# Post verloren matches naar #losers kanaal
|
# Post verloren matches naar #losers kanaal
|
||||||
# foreach ($lossid in $new_loss_matches) {
|
# foreach ($lossid in $new_loss_matches) {
|
||||||
|
|
@ -308,7 +308,7 @@ id $($winmatches[0].id)
|
||||||
}
|
}
|
||||||
write-output "New win matches:"
|
write-output "New win matches:"
|
||||||
$new_win_matches
|
$new_win_matches
|
||||||
if ($new_win_matches.count -ge 10) {
|
if ($new_win_matches.count -le 10) {
|
||||||
$content_winstats = '```' + ($win_stats | Format-Table | out-string) + '```'
|
$content_winstats = '```' + ($win_stats | Format-Table | out-string) + '```'
|
||||||
send-discord -content $content_winstats
|
send-discord -content $content_winstats
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue