This commit is contained in:
Lanta 2025-04-18 20:50:51 +02:00
parent 4001cde34f
commit a496c39b3e

View file

@ -101,10 +101,10 @@ catch {
}
write-output $player_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
$new_loss_matches = $player_matches.new_loss_matches
$new_loss_matches = $player_matches[-1].new_loss_matches
# Post verloren matches naar #losers kanaal
# foreach ($lossid in $new_loss_matches) {
@ -308,7 +308,7 @@ id $($winmatches[0].id)
}
write-output "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) + '```'
send-discord -content $content_winstats