diff options
Diffstat (limited to 'src/hypixelApi.ts')
-rw-r--r-- | src/hypixelApi.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts index 2f66343..8387f73 100644 --- a/src/hypixelApi.ts +++ b/src/hypixelApi.ts @@ -14,8 +14,8 @@ const httpsAgent = new Agent({ keepAlive: true }) -/* Lower level code related to the Hypixel api */ +/** This array should only ever contain one item because using multiple hypixel api keys isn't allowed :) */ const apiKeys = process.env.hypixel_keys.split(' ') interface KeyUsage { @@ -29,6 +29,7 @@ const apiKeyUsage: { [ key: string ]: KeyUsage } = {} const baseHypixelAPI = 'https://api.hypixel.net' + /** Choose the best current API key */ export function chooseApiKey(): string { // find the api key with the lowest amount of uses |