From f84a1deddbd1c8b88b5ddaf3a500b0092fb65fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Gro=C3=9F?= Date: Mon, 12 Jun 2023 14:38:40 +0200 Subject: [PATCH] Profile: Add stats bar to new rendering --- commands/profile.js | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/commands/profile.js b/commands/profile.js index 7d0dad8..1d0d2e1 100644 --- a/commands/profile.js +++ b/commands/profile.js @@ -112,12 +112,52 @@ module.exports = { "height": 30, "horizontalAlignment": "center" }, + { + "type": "text", + "text": `CC: ${await Card.count({where: {userId: user.id}})}`, + "fontSize": 30, + "x": 550, + "y": 20, + "width": 150, + "height": 30, + "horizontalAlignment": "left" + }, + { + "type": "text", + "text": `LVL: ${await user.level().currentLevel}`, + "fontSize": 30, + "x": 700, + "y": 20, + "width": 150, + "height": 30, + "horizontalAlignment": "left" + }, + { + "type": "text", + "text": `${await user.primaryCurrency} ${CURRENCY_NAMES[1]}`, + "fontSize": 30, + "x": 850, + "y": 20, + "width": 150, + "height": 30, + "horizontalAlignment": "left" + }, + { + "type": "text", + "text": `${await user.secondaryCurrency} ${CURRENCY_NAMES[2]}`, + "fontSize": 30, + "x": 1000, + "y": 20, + "width": 150, + "height": 30, + "horizontalAlignment": "left" + }, { "type": "text", "text": customStatus, "fontSize": 30, "x": 550, - "y": 25, + "y": 30, "width": 600, "height": 300, "horizontalAlignment": "left"