1
Fork 0

improve text

This commit is contained in:
Steffo 2024-12-20 19:00:56 +01:00
parent cd01cc54fa
commit 6e110e722b
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -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 <b>{name}</b>!"),
Some(name) => format!("🔵 {player_a} ha trionfato su {player_b} in «<b>{name}</b>»!"),
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 <b>{name}</b>!"),
None => format!("🟠 {player_a} è stato sconfitto da {player_b}!"),
Some(name) => format!("🟠 {player_a} ha subito una sconfitta da {player_b} in «<b>{name}</b>»!"),
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 <b>{name}</b>!"),
Some(name) => format!("⚪️ {player_a} e {player_b} hanno pareggiato in «<b>{name}</b>»!"),
None => format!("⚪️ {player_a} e {player_b} hanno pareggiato!"),
},
}