-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathurls.js
176 lines (176 loc) · 6.52 KB
/
urls.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
module.exports = [
// API
{
url: "https://api.hypixel.net/v2/player?key=KEY&uuid=VALUE",
type: 'player',
values: [
'5409757b87344c0394b10bf966a2d594', // huntz
'3abe2f6bd45a4e2282d4f9014569db25', // anrie
'1f15c58cdf3c419bba39b89e256d8a86', // Chevio
'31b5211af8b64ea8abc6b16d6dddb07b', // Nemqnja
'9cc15d802eb44f2aaf2075604ce452d5', // Dexyz
'b26feed824264432b765dd64c3ab0ff8', // Tyler_P13
'f025c1c7f55a4ea0b8d93f47d17dfe0f', // Plancke
'20934ef9488c465180a78f861586b4cf', // Minikloon
'ef962ec2df6e48a2ac9d6062c1b84652', // builder_247
'04cd3f240c7f42009b3398fba995c3a6', // Ealman
],
},
/*
{
url: "https://api.hypixel.net/skyblock/profile?key=KEY&profile=VALUE",
type: 'skyblock_profile',
values: [
'd05a0e80fa024f5a9367ca66135b7347', // LeaPhant/Grapes (Ironman)
'683a9f50cc9146f7b752839165c1245e', // Akinsoft/Not Allowed To Quit Skyblock Ever Again
// '64722047f9b34e69b67b76a62351eb05', // Technoblade/Mango
'739c8592161c47d2a61f25f246041967', // ThirtyVirus/Strawberry (Ironman)
'd3df3cccffd3473fbbba311d5329bd25', // Refraction/Apple
'fb3d96498a5b4d5b91b763db14b195ad', // DeathStreeks/Blueberry
'1277d71f338046e298d90c9fe4055f00', // 56ms/Strawberry
'7c207917505f4b48bab6631f2953151f', // Dueces/Kiwi
'a7da9276d9fa49a18e770a0509584780', // TheOriginalAce/Mango
'aea28adee98d489eb582638d20e80e23', // Chissl/Lime
'd5c8118f053e412680b5ed66bf71066e', // HuTayo/Mango
'5825e8f071d04806b92687d79b733f30', // 15h/Mango
'fad90e13ff44441c8c5e1dbe489fd44f', // Nemqnja/Tomato
],
transform: (obj, { merge, uniqueArrayElements }) => {
let uuid = {};
Object.keys(obj.profile.members).forEach(profile => {
try {
delete obj.profile.members[profile].jacob2.contests;
} catch (e) {}
uuid = merge(uuid, obj.profile.members[profile], { arrayMerge: uniqueArrayElements });
delete obj.profile.members[profile];
});
obj.profile.members.uuid = uuid;
return obj;
},
},
*/
{
url: "https://api.hypixel.net/v2/skyblock/profile?key=KEY&profile=VALUE",
type: 'skyblock_profile_v2',
values: [
'd05a0e80fa024f5a9367ca66135b7347', // LeaPhant/Grapes (Ironman)
'683a9f50cc9146f7b752839165c1245e', // Akinsoft/Not Allowed To Quit Skyblock Ever Again
// '64722047f9b34e69b67b76a62351eb05', // Technoblade/Mango
'739c8592161c47d2a61f25f246041967', // ThirtyVirus/Strawberry (Ironman)
'd3df3cccffd3473fbbba311d5329bd25', // Refraction/Apple
'fb3d96498a5b4d5b91b763db14b195ad', // DeathStreeks/Blueberry
'1277d71f338046e298d90c9fe4055f00', // 56ms/Strawberry
'7c207917505f4b48bab6631f2953151f', // Dueces/Kiwi
'a7da9276d9fa49a18e770a0509584780', // TheOriginalAce/Mango
'aea28adee98d489eb582638d20e80e23', // Chissl/Lime
'd5c8118f053e412680b5ed66bf71066e', // HuTayo/Mango
'5825e8f071d04806b92687d79b733f30', // 15h/Mango
'fad90e13ff44441c8c5e1dbe489fd44f', // Nemqnja/Tomato
],
transform: (obj, { merge, uniqueArrayElements }) => {
let uuid = {};
Object.keys(obj.profile.members).forEach(profile => {
try {
delete obj.profile.members[profile].jacob2.contests;
} catch (e) {}
uuid = merge(uuid, obj.profile.members[profile], { arrayMerge: uniqueArrayElements });
delete obj.profile.members[profile];
});
obj.profile.members.uuid = uuid;
return obj;
},
},
{
url: "https://api.hypixel.net/v2/skyblock/garden?key=KEY&profile=VALUE",
type: 'skyblock_garden',
values: [
'd05a0e80fa024f5a9367ca66135b7347', // LeaPhant/Grapes (Ironman)
'683a9f50cc9146f7b752839165c1245e', // Akinsoft/Not Allowed To Quit Skyblock Ever Again
// '64722047f9b34e69b67b76a62351eb05', // Technoblade/Mango
'739c8592161c47d2a61f25f246041967', // ThirtyVirus/Strawberry (Ironman)
'd3df3cccffd3473fbbba311d5329bd25', // Refraction/Apple
'fb3d96498a5b4d5b91b763db14b195ad', // DeathStreeks/Blueberry
'1277d71f338046e298d90c9fe4055f00', // 56ms/Strawberry
'7c207917505f4b48bab6631f2953151f', // Dueces/Kiwi
'a7da9276d9fa49a18e770a0509584780', // TheOriginalAce/Mango
'aea28adee98d489eb582638d20e80e23', // Chissl/Lime
'd5c8118f053e412680b5ed66bf71066e', // HuTayo/Mango
'5825e8f071d04806b92687d79b733f30', // 15h/Mango
'fad90e13ff44441c8c5e1dbe489fd44f', // Nemqnja/Tomato
],
},
{
url: "https://api.hypixel.net/v2/guild?key=KEY&id=VALUE",
type: 'guild',
values: [
'5687d71c0cf245173363d973', // Chimera
'53bd67d7ed503e868873eceb', // Rebel
'5320667aed50f531e5de4f5b', // Rawr
],
transform: (obj) => {
obj.guild.members[0].expHistory = {};
return obj;
},
},
{
url: 'https://api.hypixel.net/v2/resources/achievements',
type: 'achievements',
transform: (obj) => {
const o = { ...obj };
Object.keys(obj.achievements).forEach((game) => {
Object.keys(obj.achievements[game].one_time || {}).forEach((achievement) => {
if (o.achievements[game].one_time[achievement].hasOwnProperty('gamePercentUnlocked')) {
o.achievements[game].one_time[achievement].gamePercentUnlocked = 1;
}
if (o.achievements[game].one_time[achievement].hasOwnProperty('globalPercentUnlocked')) {
o.achievements[game].one_time[achievement].globalPercentUnlocked = 1;
}
});
});
return o;
}
},
{
url: 'https://api.hypixel.net/v2/skyblock/bazaar',
type: 'skyblock_bazaar_products',
transform: (obj) => {
return Object.keys(obj.products).sort();
},
},
{
url: 'https://api.hypixel.net/v2/resources/challenges',
type: 'challenges',
},
{
url: 'https://api.hypixel.net/v2/resources/quests',
type: 'quests',
},
{
url: 'https://api.hypixel.net/v2/resources/games',
type: 'games',
},
{
url: 'https://api.hypixel.net/v2/resources/vanity/pets',
type: 'pets',
},
{
url: 'https://api.hypixel.net/v2/resources/vanity/companions',
type: 'companions',
},
{
url: 'https://api.hypixel.net/v2/resources/guilds/achievements',
type: 'guild_achievements',
},
{
url: 'https://api.hypixel.net/v2/resources/skyblock/collections',
type: 'skyblock_collections',
},
{
url: 'https://api.hypixel.net/v2/resources/skyblock/skills',
type: 'skyblock_skills',
},
{
url: 'https://api.hypixel.net/v2/resources/skyblock/items',
type: 'skyblock_items',
},
];