From 5d188f870cb7dce72e7b20ef2c7cee818f18faa3 Mon Sep 17 00:00:00 2001 From: toast Date: Tue, 22 Oct 2024 08:28:44 +1100 Subject: [PATCH] Update version string in `/uptime` --- src/commands/uptime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/uptime.rs b/src/commands/uptime.rs index 383bff5..bdee9d4 100755 --- a/src/commands/uptime.rs +++ b/src/commands/uptime.rs @@ -100,7 +100,7 @@ pub async fn uptime(ctx: PoiseContext<'_>) -> Result<(), RustbotError> { }; let stat_msg = [ - format!("**{} v{}** `{}:{}`", bot.name, BOT_VERSION.as_str(), GIT_COMMIT_HASH, GIT_COMMIT_BRANCH), + format!("**{} v{}** `{GIT_COMMIT_HASH}:{GIT_COMMIT_BRANCH}`", bot.name, *BOT_VERSION), format!(">>> System: `{}`", format_duration(sys_uptime)), format!("Process: `{}`", format_duration(proc_uptime)), format!("Node: `{docker_node}`"),