improve text
This commit is contained in:
parent
cd01cc54fa
commit
6e110e722b
1 changed files with 4 additions and 4 deletions
|
@ -81,15 +81,15 @@ fn match_to_text(r#match: &Match, player_a: &Player, player_b: &Player) -> Strin
|
||||||
|
|
||||||
match r#match.outcome {
|
match r#match.outcome {
|
||||||
Outcome::AWins => match &r#match.name {
|
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}!"),
|
None => format!("🔵 {player_a} ha trionfato su {player_b}!"),
|
||||||
},
|
},
|
||||||
Outcome::BWins => match &r#match.name {
|
Outcome::BWins => match &r#match.name {
|
||||||
Some(name) => format!("🟠 {player_a} è stato sconfitto da {player_b} in <b>{name}</b>!"),
|
Some(name) => format!("🟠 {player_a} ha subito una sconfitta da {player_b} in «<b>{name}</b>»!"),
|
||||||
None => format!("🟠 {player_a} è stato sconfitto da {player_b}!"),
|
None => format!("🟠 {player_a} ha subito una sconfitta da {player_b}!"),
|
||||||
},
|
},
|
||||||
Outcome::Tie => match &r#match.name {
|
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!"),
|
None => format!("⚪️ {player_a} e {player_b} hanno pareggiato!"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue