Skip tdm report #179

Merged
OpzekerIT merged 2 commits from dev into main 2024-08-21 12:55:33 +00:00
Showing only changes of commit 618c36cb18 - Show all commits

View file

@ -85,6 +85,9 @@ foreach ($winid in $new_win_matches) {
$2D_replay_url = $2D_replay_url + "?follow=$($winners[0])" $2D_replay_url = $2D_replay_url + "?follow=$($winners[0])"
$match_stats = Invoke-RestMethod -Uri "https://api.pubg.com/shards/steam/matches/$winid" -Method GET -Headers $headers $match_stats = Invoke-RestMethod -Uri "https://api.pubg.com/shards/steam/matches/$winid" -Method GET -Headers $headers
if($winmatches[0].gameMode -eq 'tdm' ){
continue
} #skip tdm matches
if ($winmatches[0].matchType -eq 'custom') { if ($winmatches[0].matchType -eq 'custom') {
$players_to_report = $match_stats.included.attributes.stats $players_to_report = $match_stats.included.attributes.stats
} }