diff options
Diffstat (limited to 'commands/findColeweight.js')
-rw-r--r-- | commands/findColeweight.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/findColeweight.js b/commands/findColeweight.js index d3fa38a..ace0ec6 100644 --- a/commands/findColeweight.js +++ b/commands/findColeweight.js @@ -13,9 +13,9 @@ export function findColeweight(arg) axios.get(`https://ninjune.dev/api/coleweight?username=${username}`) .then(res => { let coleweightMessage = new TextComponent(`${PREFIX}&b${res.data.rank}. ${res.data.name}&b's Coleweight: ${res.data.coleweight} (Top &l${res.data.percentile}&b%)`) - .setHoverValue(`&fExperience&f: &a${res.data.exp}\n&fPowder&f: &a${res.data.pow}\n&fCollection&f: &a${res.data.col}\n&fMiscellaneous&f: &a${res.data.bes + res.data.nuc}`) + .setHoverValue(`&fExperience&f: &a${Math.round(res.data.experience.total*100) / 100}\n&fPowder&f: &a${Math.round(res.data.powder.total*100) / 100}\n&fCollection&f: &a${Math.round(res.data.experience.total*100) / 100}\n&fMiscellaneous&f: &a${Math.round(res.data.miscellaneous.total*100) / 100}`) ChatLib.chat(coleweightMessage) - }) + }) .catch(err => { ChatLib.chat(`${PREFIX}&eError. (api may be down)`) }) |