diff options
Diffstat (limited to 'src/hypixelApi.ts')
-rw-r--r-- | src/hypixelApi.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts index e91d4f5..cb8f0e0 100644 --- a/src/hypixelApi.ts +++ b/src/hypixelApi.ts @@ -1,3 +1,6 @@ +/** + * Fetch the raw Hypixel API + */ import fetch from 'node-fetch' import { jsonToQuery, shuffle } from './util' import { Agent } from 'https' @@ -10,7 +13,7 @@ const httpsAgent = new Agent({ /* Lower level code related to the Hypixel api */ -const apiKeys = process.env.keys.split(' ') +const apiKeys = process.env.hypixel_keys.split(' ') interface KeyUsage { remaining: number |