From 94f890e035496a1197f19c6fec9e03f3486c773e Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 27 Sep 2023 11:24:02 +0200 Subject: [PATCH] in loop --- discord/report_new_matches.ps1 | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/discord/report_new_matches.ps1 b/discord/report_new_matches.ps1 index 4866f96..4104c3a 100644 --- a/discord/report_new_matches.ps1 +++ b/discord/report_new_matches.ps1 @@ -60,23 +60,26 @@ foreach ($winid in $new_win_matches) { t_serv = ($winmatches.stats | Where-Object { $_.name -eq $player }).timeSurvived } } + + $content_winstats = '```' + ($win_stats | Format-Table | out-string) + '```' + send-discord -content $content_winstats + + $legenda = " + + Legenda: + + dmg_h = Damege tegen echte spelers + dmg = Alle dmg zowel echte spelers als ai + k_h = Echte spelers die ge gekilled hebt + K_a = alle spelers kills + t_serv = time survived in secondes + " + + send-discord -content $legenda + } -$content_winstats = '```' + ($win_stats | Format-Table | out-string) + '```' -send-discord -content $content_winstats -$legenda = " - -Legenda: - -dmg_h = Damege tegen echte spelers -dmg = Alle dmg zowel echte spelers als ai -k_h = Echte spelers die ge gekilled hebt -K_a = alle spelers kills -t_serv = time survived in secondes -" - -send-discord -content $legenda foreach ($item in $player_matches) { if ($item.PSObject.Properties.Name -contains "new_win_matches") {