From 0e2ee00b2fce07d00eb10ee6936b6ee3e4d848f5 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 24 Jun 2021 16:18:34 -0500 Subject: remove console logs --- src/hypixelApi.ts | 2 -- src/hypixelCached.ts | 2 +- src/mojang.ts | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src') 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 { 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 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 -- cgit