Merge pull request #231 from OpzekerIT/dev

fix
This commit is contained in:
Lanta 2025-04-18 20:51:24 +02:00 committed by GitHub
commit 655371f229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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