diff options
Diffstat (limited to 'src/hypixelApi.ts')
-rw-r--r-- | src/hypixelApi.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts index f4c9817..fdb4535 100644 --- a/src/hypixelApi.ts +++ b/src/hypixelApi.ts @@ -17,7 +17,7 @@ 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(' ') +const apiKeys = process.env?.hypixel_keys?.split(' ') ?? [] interface KeyUsage { remaining: number |