|
|
@ -8,6 +8,8 @@ use std::process;
|
|
|
|
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
|
|
|
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
|
|
|
use sysinfo::{ProcessExt, SystemExt};
|
|
|
|
use sysinfo::{ProcessExt, SystemExt};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const VERSION: &'static str = env!("CARGO_PKG_VERSION");
|
|
|
|
|
|
|
|
|
|
|
|
#[command]
|
|
|
|
#[command]
|
|
|
|
#[description("Shows some statistics about the bot")]
|
|
|
|
#[description("Shows some statistics about the bot")]
|
|
|
|
#[usage("")]
|
|
|
|
#[usage("")]
|
|
|
@ -30,10 +32,11 @@ async fn stats(ctx: &Context, msg: &Message) -> CommandResult {
|
|
|
|
|
|
|
|
|
|
|
|
let discord_info = format!(
|
|
|
|
let discord_info = format!(
|
|
|
|
r#"
|
|
|
|
r#"
|
|
|
|
|
|
|
|
Version: {}
|
|
|
|
Owner: <@{}>
|
|
|
|
Owner: <@{}>
|
|
|
|
Guilds: {}
|
|
|
|
Guilds: {}
|
|
|
|
"#,
|
|
|
|
"#,
|
|
|
|
bot_info.owner.id, guild_count
|
|
|
|
VERSION, bot_info.owner.id, guild_count
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
log::trace!("Discord info {}", discord_info);
|
|
|
|
log::trace!("Discord info {}", discord_info);
|
|
|
|