aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/player.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-30 16:18:57 -0600
committermat <github@matdoes.dev>2021-12-30 16:18:57 -0600
commit342d31e99d1fbd7bcc941e34bb2a175382f3e26e (patch)
treec735fa67652d49386d3b55b42567ea3ebd57c5c4 /build/cleaners/player.js
parentf7d1263ea669968a4b69d80cede9b77f240de4b6 (diff)
downloadskyblock-api-342d31e99d1fbd7bcc941e34bb2a175382f3e26e.tar.gz
skyblock-api-342d31e99d1fbd7bcc941e34bb2a175382f3e26e.tar.bz2
skyblock-api-342d31e99d1fbd7bcc941e34bb2a175382f3e26e.zip
remove build folder
Diffstat (limited to 'build/cleaners/player.js')
-rw-r--r--build/cleaners/player.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/build/cleaners/player.js b/build/cleaners/player.js
deleted file mode 100644
index 214be1f..0000000
--- a/build/cleaners/player.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import { cleanPlayerSkyblockProfiles } from './skyblock/profiles.js';
-import { cleanSocialMedia } from './socialmedia.js';
-import { cleanRank } from './rank.js';
-import { undashUuid } from '../util.js';
-export async function cleanPlayerResponse(data) {
- // Cleans up a 'player' api response
- if (!data)
- return null; // bruh
- return {
- uuid: undashUuid(data.uuid),
- username: data.displayname,
- rank: cleanRank(data),
- socials: cleanSocialMedia(data),
- // first_join: data.firstLogin / 1000,
- profiles: cleanPlayerSkyblockProfiles(data.stats?.SkyBlock?.profiles)
- };
-}