diff options
author | mat <github@matdoes.dev> | 2022-03-19 19:56:28 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-03-19 19:56:28 -0500 |
commit | 5937ac8c91a15e6bc8daf8d259eb9cd842b86d86 (patch) | |
tree | 5a2cf508aab80e14849e08a01004a3874cb58f3f /src/lib/profile.ts | |
parent | d4fdbf639d28c1244eb4072584b7484b4eae3fec (diff) | |
download | skyblock-stats-5937ac8c91a15e6bc8daf8d259eb9cd842b86d86.tar.gz skyblock-stats-5937ac8c91a15e6bc8daf8d259eb9cd842b86d86.tar.bz2 skyblock-stats-5937ac8c91a15e6bc8daf8d259eb9cd842b86d86.zip |
Squashed commit of the following:
commit 5edaa4376f37890fb1ddd6493b0ac778cebe927e
Author: mat <github@matdoes.dev>
Date: Sat Mar 19 19:55:56 2022 -0500
Change stuff to work with my breaking changes
Diffstat (limited to 'src/lib/profile.ts')
-rw-r--r-- | src/lib/profile.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/profile.ts b/src/lib/profile.ts index d2891ab..256dc24 100644 --- a/src/lib/profile.ts +++ b/src/lib/profile.ts @@ -14,14 +14,14 @@ export function prettyTimestamp(ms: number) { export function generateInfobox(data: CleanMemberProfile): string[] { const result: string[] = [] - result.push(`💾 Last save: ${prettyTimestamp(data.member.last_save * 1000)}`) + result.push(`💾 Last save: ${prettyTimestamp(data.member.lastSave * 1000)}`) - result.push(`🚶 Profile created: ${prettyTimestamp(data.member.first_join * 1000)}`) + result.push(`🚶 Profile created: ${prettyTimestamp(data.member.firstJoin * 1000)}`) - result.push(`✨ Fairy souls: ${data.member.fairy_souls.total}/${data.member.fairy_souls.max}`) + result.push(`✨ Fairy souls: ${data.member.fairySouls.total}/${data.member.fairySouls.max}`) - if (data.profile.minion_count >= data.profile.maxUniqueMinions) - result.push(`🤖 Minion count: ${data.profile.minion_count}`) + if (data.profile.minionCount >= data.profile.maxUniqueMinions) + result.push(`🤖 Minion count: ${data.profile.minionCount}`) if (data.member.stats) { let mostSignificantKillsStat: StatItem | null = null |