fix #231

Merged
OpzekerIT merged 1 commit from dev into main 2025-04-18 18:51:24 +00:00

View file

@ -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