affichage de l'anti-rob

This commit is contained in:
*x1
2024-06-13 11:04:22 +02:00
parent 5392ca2f4a
commit 327f38f183
+5
View File
@@ -23,6 +23,11 @@ module.exports = {
const niveau = user.lvl
const xp = user.xp
let anti_rob = ``
if (user.antiRob + 7200000 > Date.now()) {
anti_rob = `\n> :shield: **Anti-Rob:** \`${Math.floor((user.antiRob + 7200000 - Date.now()) / 60000)}\` minutes.`
}
const embed = new EmbedBuilder()
.setAuthor({ name: `Détails du Compte de ${member.user.tag}`, iconURL: member.user.displayAvatarURL() })
.setDescription(`> :moneybag: **Poche:** \`${pocket}\`\n> :bank: **Banque:** \`${bank}\`\n> :star2: **Réputation:** \`${reputation}\`\n\n> :bar_chart: **Niveau:** \`${niveau}\`\n> :small_orange_diamond: **Xp:** \`${xp}/${niveau*100}\``)