New reporting system to discord #27
1 changed files with 17 additions and 14 deletions
|
|
@ -60,7 +60,6 @@ foreach ($winid in $new_win_matches) {
|
||||||
t_serv = ($winmatches.stats | Where-Object { $_.name -eq $player }).timeSurvived
|
t_serv = ($winmatches.stats | Where-Object { $_.name -eq $player }).timeSurvived
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$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
|
||||||
|
|
@ -78,6 +77,10 @@ t_serv = time survived in secondes
|
||||||
|
|
||||||
send-discord -content $legenda
|
send-discord -content $legenda
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
foreach ($item in $player_matches) {
|
foreach ($item in $player_matches) {
|
||||||
if ($item.PSObject.Properties.Name -contains "new_win_matches") {
|
if ($item.PSObject.Properties.Name -contains "new_win_matches") {
|
||||||
$item.new_win_matches = $null
|
$item.new_win_matches = $null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue