From c90bb1fc07214302c393205c4bd77e3bfade37bd Mon Sep 17 00:00:00 2001 From: jude Date: Tue, 20 Oct 2020 09:13:55 +0100 Subject: [PATCH] bumped cargo version. tagged info commands with pkg name and version --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/commands/info_cmds.rs | 46 ++++++++++++++++++++++++++++++++++++--- 3 files changed, 45 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1a3ae56..ba15874 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1165,7 +1165,7 @@ dependencies = [ [[package]] name = "reminder_rs" -version = "0.1.0" +version = "0.1.3" dependencies = [ "Inflector", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index a054768..e9ff450 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reminder_rs" -version = "0.1.0" +version = "0.1.3" authors = ["jellywx "] edition = "2018" diff --git a/src/commands/info_cmds.rs b/src/commands/info_cmds.rs index 7c8107c..c61db67 100644 --- a/src/commands/info_cmds.rs +++ b/src/commands/info_cmds.rs @@ -45,7 +45,18 @@ async fn help(ctx: &Context, msg: &Message, _args: String) -> CommandResult { msg.channel_id .send_message(ctx, |m| { - m.embed(move |e| e.title("Help").description(desc).color(*THEME_COLOR)) + m.embed(move |e| { + e.title("Help") + .description(desc) + .footer(|f| { + f.text(concat!( + env!("CARGO_PKG_NAME"), + " ver ", + env!("CARGO_PKG_VERSION") + )) + }) + .color(*THEME_COLOR) + }) }) .await?; @@ -75,7 +86,18 @@ async fn info(ctx: &Context, msg: &Message, _args: String) -> CommandResult { msg.channel_id .send_message(ctx, |m| { - m.embed(move |e| e.title("Info").description(desc).color(*THEME_COLOR)) + m.embed(move |e| { + e.title("Info") + .description(desc) + .footer(|f| { + f.text(concat!( + env!("CARGO_PKG_NAME"), + " ver ", + env!("CARGO_PKG_VERSION") + )) + }) + .color(*THEME_COLOR) + }) }) .await?; @@ -97,7 +119,18 @@ async fn donate(ctx: &Context, msg: &Message, _args: String) -> CommandResult { msg.channel_id .send_message(ctx, |m| { - m.embed(move |e| e.title("Donate").description(desc).color(*THEME_COLOR)) + m.embed(move |e| { + e.title("Donate") + .description(desc) + .footer(|f| { + f.text(concat!( + env!("CARGO_PKG_NAME"), + " ver ", + env!("CARGO_PKG_VERSION") + )) + }) + .color(*THEME_COLOR) + }) }) .await?; @@ -111,6 +144,13 @@ async fn dashboard(ctx: &Context, msg: &Message, _args: String) -> CommandResult m.embed(move |e| { e.title("Dashboard") .description("https://reminder-bot.com/dashboard") + .footer(|f| { + f.text(concat!( + env!("CARGO_PKG_NAME"), + " ver ", + env!("CARGO_PKG_VERSION") + )) + }) .color(*THEME_COLOR) }) })