diff --git a/Cargo.lock b/Cargo.lock index d3ecd2a..a27dc07 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2050,7 +2050,7 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tobi-rs" -version = "0.1.0" +version = "0.1.1" dependencies = [ "aspotify", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 74e82e3..f3b4ecb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tobi-rs" -version = "0.1.0" +version = "0.1.1" authors = ["trivernis "] edition = "2018" diff --git a/src/commands/misc/stats.rs b/src/commands/misc/stats.rs index add521f..a64e991 100644 --- a/src/commands/misc/stats.rs +++ b/src/commands/misc/stats.rs @@ -8,6 +8,8 @@ use std::process; use std::time::{Duration, SystemTime, UNIX_EPOCH}; use sysinfo::{ProcessExt, SystemExt}; +const VERSION: &'static str = env!("CARGO_PKG_VERSION"); + #[command] #[description("Shows some statistics about the bot")] #[usage("")] @@ -30,10 +32,11 @@ async fn stats(ctx: &Context, msg: &Message) -> CommandResult { let discord_info = format!( r#" + Version: {} Owner: <@{}> Guilds: {} "#, - bot_info.owner.id, guild_count + VERSION, bot_info.owner.id, guild_count ); log::trace!("Discord info {}", discord_info);