From a496c39b3e290dcb65529e7e6621665be4f209ab Mon Sep 17 00:00:00 2001 From: Lanta Date: Fri, 18 Apr 2025 20:50:51 +0200 Subject: [PATCH] fix --- discord/report_new_matches.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/report_new_matches.ps1 b/discord/report_new_matches.ps1 index c5a69ff..0074fb9 100644 --- a/discord/report_new_matches.ps1 +++ b/discord/report_new_matches.ps1 @@ -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 -- 2.49.1