diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hypixelApi.ts | 2 | ||||
-rw-r--r-- | src/hypixelCached.ts | 2 | ||||
-rw-r--r-- | src/mojang.ts | 3 |
3 files changed, 1 insertions, 6 deletions
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 |