mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 00:38:54 +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();
|
||||
content
|
||||
.push_line("```")
|
||||
.push_line("Rank | pp | Username")
|
||||
.push_line("Rank | pp | Username")
|
||||
.push_line(format!("-----------------{:-<uw$}", "", uw = username_len));
|
||||
for (id, (pp, member)) in users.iter().enumerate() {
|
||||
content
|
||||
.push(format!(
|
||||
"{:>4} | {:>7.2} | ",
|
||||
"{:>4} | {:>8.2} | ",
|
||||
format!("#{}", 1 + id + start),
|
||||
pp
|
||||
))
|
||||
|
|
Loading…
Add table
Reference in a new issue