From 618c36cb1815e8a6d8b75042480d49f9aea66778 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 21 Aug 2024 14:53:32 +0200 Subject: [PATCH] skip tdm report --- discord/report_new_matches.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/report_new_matches.ps1 b/discord/report_new_matches.ps1 index 2441836..91a2253 100644 --- a/discord/report_new_matches.ps1 +++ b/discord/report_new_matches.ps1 @@ -85,6 +85,9 @@ foreach ($winid in $new_win_matches) { $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 + if($winmatches[0].gameMode -eq 'tdm' ){ + continue + } #skip tdm matches if ($winmatches[0].matchType -eq 'custom') { $players_to_report = $match_stats.included.attributes.stats }