From ddb28c22ba296295c60769d3e3b983fc6d7b53d8 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 27 Dec 2023 17:35:57 +0100 Subject: [PATCH] Pad server pp ranks to 5 digits --- youmubot-osu/src/discord/server_rank.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youmubot-osu/src/discord/server_rank.rs b/youmubot-osu/src/discord/server_rank.rs index 4ee541d..4ca9a10 100644 --- a/youmubot-osu/src/discord/server_rank.rs +++ b/youmubot-osu/src/discord/server_rank.rs @@ -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!("-----------------{:-4} | {:>7.2} | ", + "{:>4} | {:>8.2} | ", format!("#{}", 1 + id + start), pp ))