diff options
-rw-r--r-- | build/hypixelApi.js | 1 | ||||
-rw-r--r-- | build/hypixelCached.js | 2 | ||||
-rw-r--r-- | build/mojang.js | 3 | ||||
-rw-r--r-- | src/hypixelApi.ts | 2 | ||||
-rw-r--r-- | src/hypixelCached.ts | 2 | ||||
-rw-r--r-- | src/mojang.ts | 3 |
6 files changed, 2 insertions, 11 deletions
diff --git a/build/hypixelApi.js b/build/hypixelApi.js index d6ad066..df6d426 100644 --- a/build/hypixelApi.js +++ b/build/hypixelApi.js @@ -20,7 +20,6 @@ const httpsAgent = new https_1.Agent({ }); /** This array should only ever contain one item because using multiple hypixel api keys isn't allowed :) */ const apiKeys = (_c = (_b = (_a = process.env) === null || _a === void 0 ? void 0 : _a.hypixel_keys) === null || _b === void 0 ? void 0 : _b.split(' ')) !== null && _c !== void 0 ? _c : []; -console.log(apiKeys); const apiKeyUsage = {}; const baseHypixelAPI = 'https://api.hypixel.net'; /** Choose the best current API key */ diff --git a/build/hypixelCached.js b/build/hypixelCached.js index 8fb93ec..d732f2d 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -234,7 +234,7 @@ async function fetchBasicProfiles(user) { console.debug('Cache miss: fetchBasicProfiles', user); const player = await fetchPlayer(playerUuid); if (!player) { - console.log('bruh playerUuid', user, playerUuid); + console.log('bruh playerUuid', user); return []; } const profiles = player.profiles; diff --git a/build/mojang.js b/build/mojang.js index 86e44d8..2d2f694 100644 --- a/build/mojang.js +++ b/build/mojang.js @@ -34,7 +34,6 @@ async function profileFromUuid(uuid) { dataString = await fetchResponse.text(); } catch (err) { - console.log('failed reading response text', err); return { uuid: null, username: null }; } let data; @@ -42,11 +41,9 @@ async function profileFromUuid(uuid) { data = JSON.parse(dataString); } catch { - console.log('mojang response:', dataString); // if it errors, just return null return { uuid: null, username: null }; } - console.log('mojang response:', data); return { uuid: data.id, username: data.name diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts index 9ce167f..b3a1cae 100644 --- a/src/hypixelApi.ts +++ b/src/hypixelApi.ts @@ -19,8 +19,6 @@ const httpsAgent = new Agent({ /** This array should only ever contain one item because using multiple hypixel api keys isn't allowed :) */ const apiKeys = process.env?.hypixel_keys?.split(' ') ?? [] -console.log(apiKeys) - interface KeyUsage { remaining: number limit: number diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 29979fe..92a7801 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -254,7 +254,7 @@ async function fetchBasicProfiles(user: string): Promise<CleanBasicProfile[]> { const player = await fetchPlayer(playerUuid) if (!player) { - console.log('bruh playerUuid', user, playerUuid) + console.log('bruh playerUuid', user) return [] } const profiles = player.profiles diff --git a/src/mojang.ts b/src/mojang.ts index c5176e6..e22c8d8 100644 --- a/src/mojang.ts +++ b/src/mojang.ts @@ -41,18 +41,15 @@ export async function profileFromUuid(uuid: string): Promise<MojangApiResponse> try { dataString = await fetchResponse.text() } catch (err) { - console.log('failed reading response text', err) return { uuid: null, username: null } } let data try { data = JSON.parse(dataString) } catch { - console.log('mojang response:', dataString) // if it errors, just return null return { uuid: null, username: null } } - console.log('mojang response:', data) return { uuid: data.id, username: data.name |