Itemsum
This commit is contained in:
parent
a39c4f474a
commit
934f3a8918
@ -26,7 +26,8 @@ export default bot => {
|
||||
level: parseInt(p[2]),
|
||||
class: p[4],
|
||||
ttl: p[5],
|
||||
online: p[7] === "Yes"
|
||||
online: p[7] === "Yes",
|
||||
itemsum: parseInt(p[31])
|
||||
}));
|
||||
let p = players.has(e.args[0].toLowerCase())?players.get(e.args[0].toLowerCase()):false;
|
||||
let tmp = e.args[0].match(/#\d+/);
|
||||
@ -37,7 +38,7 @@ export default bot => {
|
||||
}
|
||||
if(!p)
|
||||
return e.reply("user / rang doesn't exist. D:");
|
||||
e.reply(`(${p.rang} / ${players.size}) [b]${p.name}[/b], the [b]${p.class}[/b] is ${p.online?"[color=green]online[/color]":"[color=red]offline[/color]"}: level: ${p.level}, next level in ${p.ttl}.`);
|
||||
e.reply(`(${p.rang} / ${players.size}) [b]${p.name}[/b], the [b]${p.class}[/b] is ${p.online?"[color=green]online[/color]":"[color=red]offline[/color]"}: level: ${p.level}, next level in ${p.ttl}. Itemsum: ${p.itemsum}`);
|
||||
})
|
||||
.catch(err => console.log(err));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user