Emit composite version string when called

This commit is contained in:
Xyon 2023-08-24 10:00:16 +01:00
parent 1832ee94ef
commit 06064a8c9e
Signed by: xyon
GPG Key ID: DD18155D6B18078D
1 changed files with 1 additions and 2 deletions

View File

@ -51,8 +51,7 @@ async fn set_activity(ctx: ManifoldContext<'_>, #[rest] #[description="Who to wa
#[poise::command(slash_command, prefix_command)]
async fn version(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
let git_info: String = built_info::GIT_VERSION.unwrap_or("unknown").to_string();
let version_string: String = format!("Version {} built at {} revision {}", built_info::PKG_VERSION, built_info::BUILT_TIME_UTC, git_info);
let version_string = &ctx.data().version_string;
ctx.send(|f| f
.reply(true)