matchtype
This commit is contained in:
parent
d5415ca556
commit
ce0dc3694c
1 changed files with 10 additions and 9 deletions
|
|
@ -58,10 +58,11 @@ foreach ($winid in $new_win_matches) {
|
|||
$telemetry = (invoke-webrequest @($winmatches.telemetry_url)[0]).content | convertfrom-json
|
||||
$players = $winmatches.stats.name
|
||||
$match_stats = Invoke-RestMethod -Uri "https://api.pubg.com/shards/steam/matches/$winid" -Method GET -Headers $headers
|
||||
$all_winners_of_match = ($match_stats.included.attributes.stats | where-object {$_.winplace -eq 1})
|
||||
$all_winners_of_match = ($match_stats.included.attributes.stats | where-object { $_.winplace -eq 1 })
|
||||
send-discord -content ":chicken: :chicken: CHICKEN CHICKEN WINNER DINNER!! :chicken: :chicken:"
|
||||
send-discord -content "Gefeliciteerd $($players -join ' ')"
|
||||
send-discord -content "match mode $($winmatches[0].gameMode)"
|
||||
send-discord -content "match type $($winmatches[0].matchType)"
|
||||
send-discord -content "map $($winmatches[0].mapName)"
|
||||
|
||||
foreach ($player in $all_winners_of_match.name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue