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( msg.channel_id.say(
format!( format!(
"**Player name**: {} "**Player name**: {}
**Guild**: {} **Guild**: {} (joined {})
**Playtime**: {} hours **Playtime**: {} hours
**Kills**: {} mobs & {} players **Kills**: {} mobs & {} players
**Chests looted**: {} **Chests looted**: {}
**Total level**: {}{}", **Total level**: {}{}",
player.username, player.username,
player.guild.name, player.guild.name,
wynncraft::guild(&player.guild.name)?.unwrap().members.iter().filter(|x| x.name == player.username).next().unwrap().joined,
player.playtime / 60, player.playtime / 60,
player.global.mobs_killed, player.global.pvp_kills, player.global.mobs_killed, player.global.pvp_kills,
player.global.chests_found, player.global.chests_found,