Emit composite version string when called
This commit is contained in:
parent
1832ee94ef
commit
06064a8c9e
|
|
@ -51,8 +51,7 @@ async fn set_activity(ctx: ManifoldContext<'_>, #[rest] #[description="Who to wa
|
||||||
|
|
||||||
#[poise::command(slash_command, prefix_command)]
|
#[poise::command(slash_command, prefix_command)]
|
||||||
async fn version(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
|
async fn version(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
|
||||||
let git_info: String = built_info::GIT_VERSION.unwrap_or("unknown").to_string();
|
let version_string = &ctx.data().version_string;
|
||||||
let version_string: String = format!("Version {} built at {} revision {}", built_info::PKG_VERSION, built_info::BUILT_TIME_UTC, git_info);
|
|
||||||
|
|
||||||
ctx.send(|f| f
|
ctx.send(|f| f
|
||||||
.reply(true)
|
.reply(true)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue