Add join date
This commit is contained in:
parent
aeed8dd156
commit
ff48e6fa9f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user