Add join date

This commit is contained in:
Sakuhl 2018-02-24 22:44:23 +01:00
parent aeed8dd156
commit ff48e6fa9f

View File

@ -21,13 +21,14 @@ pub fn wc_player(command: &str, msg: &Message) -> Result<(), Error> {
msg.channel_id.say(
format!(
"**Player name**: {}
**Guild**: {}
**Guild**: {} (joined {})
**Playtime**: {} hours
**Kills**: {} mobs & {} players
**Chests looted**: {}
**Total level**: {}{}",
player.username,
player.guild.name,
wynncraft::guild(&player.guild.name)?.unwrap().members.iter().filter(|x| x.name == player.username).next().unwrap().joined,
player.playtime / 60,
player.global.mobs_killed, player.global.pvp_kills,
player.global.chests_found,