winwithurl

This commit is contained in:
Lanta 2025-06-19 11:23:58 +02:00
parent d6d9ada748
commit 21dd9b990b

View file

@ -262,8 +262,12 @@ foreach ($winid in $new_win_matches) {
$2D_replay_url = 'https://chickendinner.gg/' + $winid + "/" + $players_to_report[0].name $2D_replay_url = 'https://chickendinner.gg/' + $winid + "/" + $players_to_report[0].name
if ($new_win_matches.count -le 10) { if ($new_win_matches.count -le 10) {
#fail safe #fail safe
$winnerswithurl = @()
foreach($winner in $winners){
$winnerswithurl += "[$winner](<https://dtch.online/latestmatches.php?selected_player=$($winner)>)"
}
send-discord -content ":chicken: :chicken: **WINNER WINNER CHICKEN DINNER!!** :chicken: :chicken:" send-discord -content ":chicken: :chicken: **WINNER WINNER CHICKEN DINNER!!** :chicken: :chicken:"
send-discord -content ":partying_face::partying_face::partying_face: Gefeliciteerd $($winners -join ', ') :partying_face::partying_face::partying_face:" send-discord -content ":partying_face::partying_face::partying_face: Gefeliciteerd $($winnerswithurl -join ', ') :partying_face::partying_face::partying_face:"
$match_settings = @" $match_settings = @"
`````` ``````
match mode $($winmatches[0].gameMode) match mode $($winmatches[0].gameMode)