From 6e110e722b0217e20aa2af5c43bcdb122dc1ba27 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 20 Dec 2024 19:00:56 +0100 Subject: [PATCH] improve text --- holycow_backend/src/routes/matches.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/holycow_backend/src/routes/matches.rs b/holycow_backend/src/routes/matches.rs index 51d1fc8..af243ae 100644 --- a/holycow_backend/src/routes/matches.rs +++ b/holycow_backend/src/routes/matches.rs @@ -81,15 +81,15 @@ fn match_to_text(r#match: &Match, player_a: &Player, player_b: &Player) -> Strin match r#match.outcome { Outcome::AWins => match &r#match.name { - Some(name) => format!("🔵 {player_a} ha trionfato su {player_b} in {name}!"), + Some(name) => format!("🔵 {player_a} ha trionfato su {player_b} in «{name}»!"), None => format!("🔵 {player_a} ha trionfato su {player_b}!"), }, Outcome::BWins => match &r#match.name { - Some(name) => format!("🟠 {player_a} è stato sconfitto da {player_b} in {name}!"), - None => format!("🟠 {player_a} è stato sconfitto da {player_b}!"), + Some(name) => format!("🟠 {player_a} ha subito una sconfitta da {player_b} in «{name}»!"), + None => format!("🟠 {player_a} ha subito una sconfitta da {player_b}!"), }, Outcome::Tie => match &r#match.name { - Some(name) => format!("⚪️ {player_a} e {player_b} hanno pareggiato in {name}!"), + Some(name) => format!("⚪️ {player_a} e {player_b} hanno pareggiato in «{name}»!"), None => format!("⚪️ {player_a} e {player_b} hanno pareggiato!"), }, }