aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-04-28 13:30:03 -0500
committermat <github@matdoes.dev>2021-04-28 13:30:03 -0500
commit0668a6f1548a0e8a0ca5b45c1f582d593bb3b66a (patch)
treef533a2706cb0d2bdd6f260cd0b040e834ea99931 /src
parent8fb9391a1f5fac16afea25564a30c904020a3126 (diff)
downloadskyblock-api-0668a6f1548a0e8a0ca5b45c1f582d593bb3b66a.tar.gz
skyblock-api-0668a6f1548a0e8a0ca5b45c1f582d593bb3b66a.tar.bz2
skyblock-api-0668a6f1548a0e8a0ca5b45c1f582d593bb3b66a.zip
remove some debug stuff
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/skyblock/inventory.ts1
-rw-r--r--src/database.ts2
-rw-r--r--src/hypixelCached.ts2
3 files changed, 1 insertions, 4 deletions
diff --git a/src/cleaners/skyblock/inventory.ts b/src/cleaners/skyblock/inventory.ts
index d23bbac..890937a 100644
--- a/src/cleaners/skyblock/inventory.ts
+++ b/src/cleaners/skyblock/inventory.ts
@@ -39,7 +39,6 @@ function cleanItem(rawItem): Item {
if (vanillaId === 397) {
const headDataBase64 = itemTag?.SkullOwner?.Properties?.textures?.[0]?.Value
- if (extraAttributes?.id === 'LARGE_MINING_SACK') console.log(headDataBase64)
if (headDataBase64) {
const headData = JSON.parse(base64decode(headDataBase64).toString())
const headDataUrl = headData?.textures?.SKIN?.url
diff --git a/src/database.ts b/src/database.ts
index c715d52..6077025 100644
--- a/src/database.ts
+++ b/src/database.ts
@@ -261,7 +261,6 @@ async function fetchProfileLeaderboardRaw(name: string): Promise<DatabaseProfile
.sort(sortQuery)
.limit(leaderboardMax)
.toArray()
- console.log('leaderboardRaw', leaderboardRaw)
cachedRawLeaderboards.set(name, leaderboardRaw)
return leaderboardRaw
@@ -333,7 +332,6 @@ export async function fetchProfileLeaderboard(name: string): Promise<ProfileLead
/** Fetch a leaderboard */
export async function fetchLeaderboard(name: string): Promise<MemberLeaderboard|ProfileLeaderboard> {
const profileLeaderboards = await fetchAllProfileLeaderboardAttributes()
- console.log(name, profileLeaderboards, profileLeaderboards.includes(name))
if (profileLeaderboards.includes(name)) {
return await fetchProfileLeaderboard(name)
} else {
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index 6a84f5e..a5a5909 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -191,7 +191,7 @@ export async function fetchBasicPlayer(user: string): Promise<CleanPlayer> {
return basicPlayerCache.get(playerUuid)
const player = await fetchPlayer(playerUuid)
- if (!player) console.log(user)
+ if (!player) console.log('no player? this should never happen', user)
delete player.profiles
return player