aboutsummaryrefslogtreecommitdiff
path: root/src/hypixelCached.ts
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-13 15:03:13 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-13 15:03:13 -0600
commit8d2722bdd81591feef14dd4ccdf99ac9c1309925 (patch)
treee3d4f49ad705b1ef085d0425568f0e4e6b5d610e /src/hypixelCached.ts
parente9bd7f931e071311ff9a3b83673042f8da352554 (diff)
downloadskyblock-api-8d2722bdd81591feef14dd4ccdf99ac9c1309925.tar.gz
skyblock-api-8d2722bdd81591feef14dd4ccdf99ac9c1309925.tar.bz2
skyblock-api-8d2722bdd81591feef14dd4ccdf99ac9c1309925.zip
add optional check to verify all clients are owned by the creator
Diffstat (limited to 'src/hypixelCached.ts')
-rw-r--r--src/hypixelCached.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index 7f0305e..74b1366 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -1,3 +1,7 @@
+/**
+ * Fetch the clean and cached Hypixel API
+ */
+
import NodeCache from 'node-cache'
import * as mojang from './mojang'
import * as hypixel from './hypixel'
@@ -5,11 +9,6 @@ import { CleanPlayer } from './cleaners/player'
import { undashUuid } from './util'
import { CleanProfile, CleanFullProfile, CleanBasicProfile } from './cleaners/skyblock/profile'
-/**
-Hypixel... but with caching
-All the caching in this project is done here!
-*/
-
// cache usernames for 4 hours
const usernameCache = new NodeCache({