mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 16:58:55 +00:00
Pad server pp ranks to 5 digits
This commit is contained in:
parent
eee975092f
commit
ddb28c22ba
1 changed files with 2 additions and 2 deletions
|
@ -108,12 +108,12 @@ pub async fn server_rank(ctx: &Context, m: &Message, mut args: Args) -> CommandR
|
||||||
let mut content = MessageBuilder::new();
|
let mut content = MessageBuilder::new();
|
||||||
content
|
content
|
||||||
.push_line("```")
|
.push_line("```")
|
||||||
.push_line("Rank | pp | Username")
|
.push_line("Rank | pp | Username")
|
||||||
.push_line(format!("-----------------{:-<uw$}", "", uw = username_len));
|
.push_line(format!("-----------------{:-<uw$}", "", uw = username_len));
|
||||||
for (id, (pp, member)) in users.iter().enumerate() {
|
for (id, (pp, member)) in users.iter().enumerate() {
|
||||||
content
|
content
|
||||||
.push(format!(
|
.push(format!(
|
||||||
"{:>4} | {:>7.2} | ",
|
"{:>4} | {:>8.2} | ",
|
||||||
format!("#{}", 1 + id + start),
|
format!("#{}", 1 + id + start),
|
||||||
pp
|
pp
|
||||||
))
|
))
|
||||||
|
|
Loading…
Add table
Reference in a new issue