gj-boomlings-api 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +2 -2
- package/functions/dlLevel.js +10 -8
- package/functions/getAccountPosts.js +6 -103
- package/functions/getCommentHistory.js +6 -103
- package/functions/getComments.js +5 -102
- package/functions/getCreatorScores.js +10 -202
- package/functions/getGauntlets.js +5 -33
- package/functions/getProfile.js +5 -2
- package/functions/getTop100.js +10 -202
- package/functions/uploadAccountPost.js +1 -0
- package/functions/uploadComment.js +3 -1
- package/misc/colors.json +44 -0
- package/misc/decodeGJComment.js +18 -11
- package/misc/decodeLevel.js +2 -0
- package/misc/decodeMapPack.js +1 -13
- package/misc/decodeUserResult.js +7 -4
- package/misc/rgbToHEX.js +16 -0
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2022 shikoshib
|
|
2
2
|
|
|
3
3
|
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
4
4
|
|
|
5
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
5
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/functions/dlLevel.js
CHANGED
|
@@ -61,6 +61,8 @@ module.exports = {
|
|
|
61
61
|
let ldm = levelInfo[31].split("40:")[1];
|
|
62
62
|
let password = xor.decrypt(levelInfo[32].split("27:")[1].split("#")[0], 26364);
|
|
63
63
|
|
|
64
|
+
if(password.length == 7) password = password.replace("1", "");
|
|
65
|
+
|
|
64
66
|
let disliked = false;
|
|
65
67
|
if(likes.includes("-")) disliked = true;
|
|
66
68
|
|
|
@@ -137,12 +139,12 @@ module.exports = {
|
|
|
137
139
|
if(description == '') description = "(No description provided)";
|
|
138
140
|
|
|
139
141
|
const { getLevelByID } = require("./getLevelByID.js");
|
|
140
|
-
let
|
|
142
|
+
let getLvl = await getLevelByID(id);
|
|
141
143
|
let result = {
|
|
142
144
|
id: Number(id),
|
|
143
145
|
name: name,
|
|
144
146
|
description: description,
|
|
145
|
-
creator:
|
|
147
|
+
creator: getLvl.creator,
|
|
146
148
|
level_version: Number(version),
|
|
147
149
|
difficulty: difficultyDecoding[difficulty],
|
|
148
150
|
stars: Number(stars),
|
|
@@ -150,7 +152,7 @@ module.exports = {
|
|
|
150
152
|
likes: Number(likes),
|
|
151
153
|
disliked: disliked,
|
|
152
154
|
length: lengthDecoding[length],
|
|
153
|
-
password: password
|
|
155
|
+
password: password,
|
|
154
156
|
demon: demonBoolDecoding[demonBool],
|
|
155
157
|
featured: featured,
|
|
156
158
|
epic: demonBoolDecoding[epic],
|
|
@@ -164,15 +166,15 @@ module.exports = {
|
|
|
164
166
|
two_p: demonBoolDecoding[twoPlayer],
|
|
165
167
|
coins: Number(coins),
|
|
166
168
|
verified_coins: verifiedCoins,
|
|
167
|
-
song:
|
|
169
|
+
song: getLvl.song,
|
|
168
170
|
}
|
|
169
171
|
|
|
170
|
-
if(
|
|
172
|
+
if(getLvl.pointercrate != undefined) {
|
|
171
173
|
result = {
|
|
172
174
|
id: Number(id),
|
|
173
175
|
name: name,
|
|
174
176
|
description: description,
|
|
175
|
-
creator:
|
|
177
|
+
creator: getLvl.creator,
|
|
176
178
|
level_version: Number(version),
|
|
177
179
|
difficulty: difficultyDecoding[difficulty],
|
|
178
180
|
stars: Number(stars),
|
|
@@ -194,8 +196,8 @@ module.exports = {
|
|
|
194
196
|
two_p: demonBoolDecoding[twoPlayer],
|
|
195
197
|
coins: Number(coins),
|
|
196
198
|
verified_coins: verifiedCoins,
|
|
197
|
-
song:
|
|
198
|
-
pointercrate:
|
|
199
|
+
song: getLvl.song,
|
|
200
|
+
pointercrate: getLvl.pointercrate
|
|
199
201
|
}
|
|
200
202
|
}
|
|
201
203
|
|
|
@@ -40,109 +40,12 @@ module.exports = {
|
|
|
40
40
|
if(e.response.data.startsWith("#")) throw new Error("Whoops! Couldn't find anything!");
|
|
41
41
|
throw new Error(e.response.data);
|
|
42
42
|
})
|
|
43
|
-
|
|
44
|
-
let
|
|
45
|
-
let
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
let sixthPost;
|
|
50
|
-
let seventhPost;
|
|
51
|
-
let eighthPost;
|
|
52
|
-
let ninthPost;
|
|
53
|
-
let tenthPost;
|
|
54
|
-
|
|
55
|
-
let result = [decodeAccountPost(firstPost)]
|
|
56
|
-
|
|
57
|
-
if(res.data.split("|").length - 1 == 1) {
|
|
58
|
-
firstPost = res.data.split("|")[0];
|
|
59
|
-
secondPost = res.data.split("|")[1].split("|")[0];
|
|
60
|
-
result = [decodeAccountPost(firstPost),decodeAccountPost(secondPost)]
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if(res.data.split("|").length - 1 == 2) {
|
|
64
|
-
firstPost = res.data.split("|")[0];
|
|
65
|
-
secondPost = res.data.split("|")[1].split("|")[0];
|
|
66
|
-
thirdPost = res.data.split("|")[2].split("|")[0];
|
|
67
|
-
result = [decodeAccountPost(firstPost),decodeAccountPost(secondPost),decodeAccountPost(thirdPost)]
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
if(res.data.split("|").length - 1 == 3) {
|
|
71
|
-
firstPost = res.data.split("|")[0];
|
|
72
|
-
secondPost = res.data.split("|")[1].split("|")[0];
|
|
73
|
-
thirdPost = res.data.split("|")[2].split("|")[0];
|
|
74
|
-
fourthPost = res.data.split("|")[3].split("|")[0];
|
|
75
|
-
result = [decodeAccountPost(firstPost),decodeAccountPost(secondPost),decodeAccountPost(thirdPost),decodeAccountPost(fourthPost)]
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if(res.data.split("|").length - 1 == 4) {
|
|
79
|
-
firstPost = res.data.split("|")[0];
|
|
80
|
-
secondPost = res.data.split("|")[1].split("|")[0];
|
|
81
|
-
thirdPost = res.data.split("|")[2].split("|")[0];
|
|
82
|
-
fourthPost = res.data.split("|")[3].split("|")[0];
|
|
83
|
-
fifthPost = res.data.split("|")[4].split("|")[0];
|
|
84
|
-
result = [decodeAccountPost(firstPost),decodeAccountPost(secondPost),decodeAccountPost(thirdPost),decodeAccountPost(fourthPost),decodeAccountPost(fifthPost)]
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if(res.data.split("|").length - 1 == 5) {
|
|
88
|
-
firstPost = res.data.split("|")[0];
|
|
89
|
-
secondPost = res.data.split("|")[1].split("|")[0];
|
|
90
|
-
thirdPost = res.data.split("|")[2].split("|")[0];
|
|
91
|
-
fourthPost = res.data.split("|")[3].split("|")[0];
|
|
92
|
-
fifthPost = res.data.split("|")[4].split("|")[0];
|
|
93
|
-
sixthPost = res.data.split("|")[5].split("|")[0];
|
|
94
|
-
result = [decodeAccountPost(firstPost),decodeAccountPost(secondPost),decodeAccountPost(thirdPost),decodeAccountPost(fourthPost),decodeAccountPost(fifthPost),decodeAccountPost(sixthPost)]
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if(res.data.split("|").length - 1 == 6) {
|
|
98
|
-
firstPost = res.data.split("|")[0];
|
|
99
|
-
secondPost = res.data.split("|")[1].split("|")[0];
|
|
100
|
-
thirdPost = res.data.split("|")[2].split("|")[0];
|
|
101
|
-
fourthPost = res.data.split("|")[3].split("|")[0];
|
|
102
|
-
fifthPost = res.data.split("|")[4].split("|")[0];
|
|
103
|
-
sixthPost = res.data.split("|")[5].split("|")[0];
|
|
104
|
-
seventhPost = res.data.split("|")[6].split("|")[0];
|
|
105
|
-
result = [decodeAccountPost(firstPost),decodeAccountPost(secondPost),decodeAccountPost(thirdPost),decodeAccountPost(fourthPost),decodeAccountPost(fifthPost),decodeAccountPost(sixthPost),decodeAccountPost(seventhPost)]
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if(res.data.split("|").length - 1 == 7) {
|
|
109
|
-
firstPost = res.data.split("|")[0];
|
|
110
|
-
secondPost = res.data.split("|")[1].split("|")[0];
|
|
111
|
-
thirdPost = res.data.split("|")[2].split("|")[0];
|
|
112
|
-
fourthPost = res.data.split("|")[3].split("|")[0];
|
|
113
|
-
fifthPost = res.data.split("|")[4].split("|")[0];
|
|
114
|
-
sixthPost = res.data.split("|")[5].split("|")[0];
|
|
115
|
-
seventhPost = res.data.split("|")[6].split("|")[0];
|
|
116
|
-
eighthPost = res.data.split("|")[7].split("|")[0];
|
|
117
|
-
result = [decodeAccountPost(firstPost),decodeAccountPost(secondPost),decodeAccountPost(thirdPost),decodeAccountPost(fourthPost),decodeAccountPost(fifthPost),decodeAccountPost(sixthPost),decodeAccountPost(seventhPost),decodeAccountPost(eighthPost)]
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if(res.data.split("|").length - 1 == 8) {
|
|
121
|
-
firstPost = res.data.split("|")[0];
|
|
122
|
-
secondPost = res.data.split("|")[1].split("|")[0];
|
|
123
|
-
thirdPost = res.data.split("|")[2].split("|")[0];
|
|
124
|
-
fourthPost = res.data.split("|")[3].split("|")[0];
|
|
125
|
-
fifthPost = res.data.split("|")[4].split("|")[0];
|
|
126
|
-
sixthPost = res.data.split("|")[5].split("|")[0];
|
|
127
|
-
seventhPost = res.data.split("|")[6].split("|")[0];
|
|
128
|
-
eighthPost = res.data.split("|")[7].split("|")[0];
|
|
129
|
-
ninthPost = res.data.split("|")[8].split("|")[0];
|
|
130
|
-
result = [decodeAccountPost(firstPost),decodeAccountPost(secondPost),decodeAccountPost(thirdPost),decodeAccountPost(fourthPost),decodeAccountPost(fifthPost),decodeAccountPost(sixthPost),decodeAccountPost(seventhPost),decodeAccountPost(eighthPost),decodeAccountPost(ninthPost)]
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
if(res.data.split("|").length - 1 == 9) {
|
|
134
|
-
firstPost = res.data.split("|")[0];
|
|
135
|
-
secondPost = res.data.split("|")[1].split("|")[0];
|
|
136
|
-
thirdPost = res.data.split("|")[2].split("|")[0];
|
|
137
|
-
fourthPost = res.data.split("|")[3].split("|")[0];
|
|
138
|
-
fifthPost = res.data.split("|")[4].split("|")[0];
|
|
139
|
-
sixthPost = res.data.split("|")[5].split("|")[0];
|
|
140
|
-
seventhPost = res.data.split("|")[6].split("|")[0];
|
|
141
|
-
eighthPost = res.data.split("|")[7].split("|")[0];
|
|
142
|
-
ninthPost = res.data.split("|")[8].split("|")[0];
|
|
143
|
-
tenthPost = res.data.split("|")[9].split("|")[0];
|
|
144
|
-
result = [decodeAccountPost(firstPost),decodeAccountPost(secondPost),decodeAccountPost(thirdPost),decodeAccountPost(fourthPost),decodeAccountPost(fifthPost),decodeAccountPost(sixthPost),decodeAccountPost(seventhPost),decodeAccountPost(eighthPost),decodeAccountPost(ninthPost),decodeAccountPost(tenthPost)]
|
|
145
|
-
}
|
|
43
|
+
|
|
44
|
+
let accPosts = res.data.split("|");
|
|
45
|
+
let result = [];
|
|
46
|
+
accPosts.forEach(p => {
|
|
47
|
+
result.push(decodeAccountPost(p));
|
|
48
|
+
})
|
|
146
49
|
|
|
147
50
|
return result;
|
|
148
51
|
}
|
|
@@ -43,109 +43,12 @@ module.exports = {
|
|
|
43
43
|
if(e.response.data == -1) throw new Error("-1 Not found.");
|
|
44
44
|
throw new Error(e.response.data);
|
|
45
45
|
})
|
|
46
|
-
|
|
47
|
-
let
|
|
48
|
-
let
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
let sixthComment;
|
|
53
|
-
let seventhComment;
|
|
54
|
-
let eighthComment;
|
|
55
|
-
let ninthComment;
|
|
56
|
-
let tenthComment;
|
|
57
|
-
|
|
58
|
-
let result = [decCommentFromHistory(firstComment)]
|
|
59
|
-
|
|
60
|
-
if(res.data.split("|").length - 1 == 1) {
|
|
61
|
-
firstComment = res.data.split("|")[0];
|
|
62
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
63
|
-
result.push(decCommentFromHistory(secondComment))
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if(res.data.split("|").length - 1 == 2) {
|
|
67
|
-
firstComment = res.data.split("|")[0];
|
|
68
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
69
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
70
|
-
result.push(decCommentFromHistory(secondComment),decCommentFromHistory(thirdComment))
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if(res.data.split("|").length - 1 == 3) {
|
|
74
|
-
firstComment = res.data.split("|")[0];
|
|
75
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
76
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
77
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
78
|
-
result.push(decCommentFromHistory(secondComment),decCommentFromHistory(thirdComment),decCommentFromHistory(fourthComment))
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if(res.data.split("|").length - 1 == 4) {
|
|
82
|
-
firstComment = res.data.split("|")[0];
|
|
83
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
84
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
85
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
86
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
87
|
-
result.push(decCommentFromHistory(secondComment),decCommentFromHistory(thirdComment),decCommentFromHistory(fourthComment),decCommentFromHistory(fifthComment))
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if(res.data.split("|").length - 1 == 5) {
|
|
91
|
-
firstComment = res.data.split("|")[0];
|
|
92
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
93
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
94
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
95
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
96
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
97
|
-
result.push(decCommentFromHistory(secondComment),decCommentFromHistory(thirdComment),decCommentFromHistory(fourthComment),decCommentFromHistory(fifthComment),decCommentFromHistory(sixthComment))
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if(res.data.split("|").length - 1 == 6) {
|
|
101
|
-
firstComment = res.data.split("|")[0];
|
|
102
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
103
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
104
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
105
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
106
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
107
|
-
seventhComment = res.data.split("|")[6].split("|")[0];
|
|
108
|
-
result.push(decCommentFromHistory(secondComment),decCommentFromHistory(thirdComment),decCommentFromHistory(fourthComment),decCommentFromHistory(fifthComment),decCommentFromHistory(sixthComment),decCommentFromHistory(seventhComment))
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
if(res.data.split("|").length - 1 == 7) {
|
|
112
|
-
firstComment = res.data.split("|")[0];
|
|
113
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
114
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
115
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
116
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
117
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
118
|
-
seventhComment = res.data.split("|")[6].split("|")[0];
|
|
119
|
-
eighthComment = res.data.split("|")[7].split("|")[0];
|
|
120
|
-
result.push(decCommentFromHistory(secondComment),decCommentFromHistory(thirdComment),decCommentFromHistory(fourthComment),decCommentFromHistory(fifthComment),decCommentFromHistory(sixthComment),decCommentFromHistory(seventhComment),decCommentFromHistory(eighthComment))
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if(res.data.split("|").length - 1 == 8) {
|
|
124
|
-
firstComment = res.data.split("|")[0];
|
|
125
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
126
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
127
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
128
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
129
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
130
|
-
seventhComment = res.data.split("|")[6].split("|")[0];
|
|
131
|
-
eighthComment = res.data.split("|")[7].split("|")[0];
|
|
132
|
-
ninthComment = res.data.split("|")[8].split("|")[0];
|
|
133
|
-
result.push(decCommentFromHistory(secondComment),decCommentFromHistory(thirdComment),decCommentFromHistory(fourthComment),decCommentFromHistory(fifthComment),decCommentFromHistory(sixthComment),decCommentFromHistory(seventhComment),decCommentFromHistory(eighthComment),decCommentFromHistory(ninthComment))
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
if(res.data.split("|").length - 1 == 9) {
|
|
137
|
-
firstComment = res.data.split("|")[0];
|
|
138
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
139
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
140
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
141
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
142
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
143
|
-
seventhComment = res.data.split("|")[6].split("|")[0];
|
|
144
|
-
eighthComment = res.data.split("|")[7].split("|")[0];
|
|
145
|
-
ninthComment = res.data.split("|")[8].split("|")[0];
|
|
146
|
-
tenthComment = res.data.split("|")[9].split("|")[0];
|
|
147
|
-
result.push(decCommentFromHistory(secondComment),decCommentFromHistory(thirdComment),decCommentFromHistory(fourthComment),decCommentFromHistory(fifthComment),decCommentFromHistory(sixthComment),decCommentFromHistory(seventhComment),decCommentFromHistory(eighthComment),decCommentFromHistory(ninthComment),decCommentFromHistory(tenthComment))
|
|
148
|
-
}
|
|
46
|
+
|
|
47
|
+
let comments = res.data.split("|");
|
|
48
|
+
let result = [];
|
|
49
|
+
comments.forEach(c => {
|
|
50
|
+
result.push(decCommentFromHistory(c));
|
|
51
|
+
})
|
|
149
52
|
|
|
150
53
|
return result;
|
|
151
54
|
}
|
package/functions/getComments.js
CHANGED
|
@@ -24,108 +24,11 @@ module.exports = {
|
|
|
24
24
|
throw new Error(e.response.data);
|
|
25
25
|
})
|
|
26
26
|
|
|
27
|
-
let
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
let sixthComment;
|
|
33
|
-
let seventhComment;
|
|
34
|
-
let eighthComment;
|
|
35
|
-
let ninthComment;
|
|
36
|
-
let tenthComment;
|
|
37
|
-
|
|
38
|
-
let result = [decodeGJComment(firstComment)]
|
|
39
|
-
|
|
40
|
-
if(res.data.split("|").length - 1 == 1) {
|
|
41
|
-
firstComment = res.data.split("|")[0];
|
|
42
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
43
|
-
result.push(decodeGJComment(secondComment))
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if(res.data.split("|").length - 1 == 2) {
|
|
47
|
-
firstComment = res.data.split("|")[0];
|
|
48
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
49
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
50
|
-
result.push(decodeGJComment(secondComment),decodeGJComment(thirdComment))
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if(res.data.split("|").length - 1 == 3) {
|
|
54
|
-
firstComment = res.data.split("|")[0];
|
|
55
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
56
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
57
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
58
|
-
result.push(decodeGJComment(secondComment),decodeGJComment(thirdComment),decodeGJComment(fourthComment))
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if(res.data.split("|").length - 1 == 4) {
|
|
62
|
-
firstComment = res.data.split("|")[0];
|
|
63
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
64
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
65
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
66
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
67
|
-
result.push(decodeGJComment(secondComment),decodeGJComment(thirdComment),decodeGJComment(fourthComment),decodeGJComment(fifthComment))
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
if(res.data.split("|").length - 1 == 5) {
|
|
71
|
-
firstComment = res.data.split("|")[0];
|
|
72
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
73
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
74
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
75
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
76
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
77
|
-
result.push(decodeGJComment(secondComment),decodeGJComment(thirdComment),decodeGJComment(fourthComment),decodeGJComment(fifthComment),decodeGJComment(sixthComment))
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if(res.data.split("|").length - 1 == 6) {
|
|
81
|
-
firstComment = res.data.split("|")[0];
|
|
82
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
83
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
84
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
85
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
86
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
87
|
-
seventhComment = res.data.split("|")[6].split("|")[0];
|
|
88
|
-
result.push(decodeGJComment(secondComment),decodeGJComment(thirdComment),decodeGJComment(fourthComment),decodeGJComment(fifthComment),decodeGJComment(sixthComment),decodeGJComment(seventhComment))
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if(res.data.split("|").length - 1 == 7) {
|
|
92
|
-
firstComment = res.data.split("|")[0];
|
|
93
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
94
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
95
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
96
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
97
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
98
|
-
seventhComment = res.data.split("|")[6].split("|")[0];
|
|
99
|
-
eighthComment = res.data.split("|")[7].split("|")[0];
|
|
100
|
-
result.push(decodeGJComment(secondComment),decodeGJComment(thirdComment),decodeGJComment(fourthComment),decodeGJComment(fifthComment),decodeGJComment(sixthComment),decodeGJComment(seventhComment),decodeGJComment(eighthComment))
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if(res.data.split("|").length - 1 == 8) {
|
|
104
|
-
firstComment = res.data.split("|")[0];
|
|
105
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
106
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
107
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
108
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
109
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
110
|
-
seventhComment = res.data.split("|")[6].split("|")[0];
|
|
111
|
-
eighthComment = res.data.split("|")[7].split("|")[0];
|
|
112
|
-
ninthComment = res.data.split("|")[8].split("|")[0];
|
|
113
|
-
result.push(decodeGJComment(secondComment),decodeGJComment(thirdComment),decodeGJComment(fourthComment),decodeGJComment(fifthComment),decodeGJComment(sixthComment),decodeGJComment(seventhComment),decodeGJComment(eighthComment),decodeGJComment(ninthComment))
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
if(res.data.split("|").length - 1 == 9) {
|
|
117
|
-
firstComment = res.data.split("|")[0];
|
|
118
|
-
secondComment = res.data.split("|")[1].split("|")[0];
|
|
119
|
-
thirdComment = res.data.split("|")[2].split("|")[0];
|
|
120
|
-
fourthComment = res.data.split("|")[3].split("|")[0];
|
|
121
|
-
fifthComment = res.data.split("|")[4].split("|")[0];
|
|
122
|
-
sixthComment = res.data.split("|")[5].split("|")[0];
|
|
123
|
-
seventhComment = res.data.split("|")[6].split("|")[0];
|
|
124
|
-
eighthComment = res.data.split("|")[7].split("|")[0];
|
|
125
|
-
ninthComment = res.data.split("|")[8].split("|")[0];
|
|
126
|
-
tenthComment = res.data.split("|")[9].split("|")[0];
|
|
127
|
-
result.push(decodeGJComment(secondComment),decodeGJComment(thirdComment),decodeGJComment(fourthComment),decodeGJComment(fifthComment),decodeGJComment(sixthComment),decodeGJComment(seventhComment),decodeGJComment(eighthComment),decodeGJComment(ninthComment),decodeGJComment(tenthComment))
|
|
128
|
-
}
|
|
27
|
+
let comments = res.data.split("|");
|
|
28
|
+
let result = [];
|
|
29
|
+
comments.forEach(c => {
|
|
30
|
+
result.push(decodeGJComment(c));
|
|
31
|
+
})
|
|
129
32
|
|
|
130
33
|
return result;
|
|
131
34
|
}
|
|
@@ -15,208 +15,16 @@ module.exports = {
|
|
|
15
15
|
headers: headers
|
|
16
16
|
})
|
|
17
17
|
|
|
18
|
-
let
|
|
19
|
-
let
|
|
20
|
-
let p3 = res.data.split("|")[2].split("|")[0];
|
|
21
|
-
let p4 = res.data.split("|")[3].split("|")[0];
|
|
22
|
-
let p5 = res.data.split("|")[4].split("|")[0];
|
|
23
|
-
let p6 = res.data.split("|")[5].split("|")[0];
|
|
24
|
-
let p7 = res.data.split("|")[6].split("|")[0];
|
|
25
|
-
let p8 = res.data.split("|")[7].split("|")[0];
|
|
26
|
-
let p9 = res.data.split("|")[8].split("|")[0];
|
|
27
|
-
let p10 = res.data.split("|")[9].split("|")[0];
|
|
28
|
-
let p11 = res.data.split("|")[10].split("|")[0];
|
|
29
|
-
let p12 = res.data.split("|")[11].split("|")[0];
|
|
30
|
-
let p13 = res.data.split("|")[12].split("|")[0];
|
|
31
|
-
let p14 = res.data.split("|")[13].split("|")[0];
|
|
32
|
-
let p15 = res.data.split("|")[14].split("|")[0];
|
|
33
|
-
let p16 = res.data.split("|")[15].split("|")[0];
|
|
34
|
-
let p17 = res.data.split("|")[16].split("|")[0];
|
|
35
|
-
let p18 = res.data.split("|")[17].split("|")[0];
|
|
36
|
-
let p19 = res.data.split("|")[18].split("|")[0];
|
|
37
|
-
let p20 = res.data.split("|")[19].split("|")[0];
|
|
38
|
-
let p21 = res.data.split("|")[20].split("|")[0];
|
|
39
|
-
let p22 = res.data.split("|")[21].split("|")[0];
|
|
40
|
-
let p23 = res.data.split("|")[22].split("|")[0];
|
|
41
|
-
let p24 = res.data.split("|")[23].split("|")[0];
|
|
42
|
-
let p25 = res.data.split("|")[24].split("|")[0];
|
|
43
|
-
let p26 = res.data.split("|")[25].split("|")[0];
|
|
44
|
-
let p27 = res.data.split("|")[26].split("|")[0];
|
|
45
|
-
let p28 = res.data.split("|")[27].split("|")[0];
|
|
46
|
-
let p29 = res.data.split("|")[28].split("|")[0];
|
|
47
|
-
let p30 = res.data.split("|")[29].split("|")[0];
|
|
48
|
-
let p31 = res.data.split("|")[30].split("|")[0];
|
|
49
|
-
let p32 = res.data.split("|")[31].split("|")[0];
|
|
50
|
-
let p33 = res.data.split("|")[32].split("|")[0];
|
|
51
|
-
let p34 = res.data.split("|")[33].split("|")[0];
|
|
52
|
-
let p35 = res.data.split("|")[34].split("|")[0];
|
|
53
|
-
let p36 = res.data.split("|")[35].split("|")[0];
|
|
54
|
-
let p37 = res.data.split("|")[36].split("|")[0];
|
|
55
|
-
let p38 = res.data.split("|")[37].split("|")[0];
|
|
56
|
-
let p39 = res.data.split("|")[38].split("|")[0];
|
|
57
|
-
let p40 = res.data.split("|")[39].split("|")[0];
|
|
58
|
-
let p41 = res.data.split("|")[40].split("|")[0];
|
|
59
|
-
let p42 = res.data.split("|")[41].split("|")[0];
|
|
60
|
-
let p43 = res.data.split("|")[42].split("|")[0];
|
|
61
|
-
let p44 = res.data.split("|")[43].split("|")[0];
|
|
62
|
-
let p45 = res.data.split("|")[44].split("|")[0];
|
|
63
|
-
let p46 = res.data.split("|")[45].split("|")[0];
|
|
64
|
-
let p47 = res.data.split("|")[46].split("|")[0];
|
|
65
|
-
let p48 = res.data.split("|")[47].split("|")[0];
|
|
66
|
-
let p49 = res.data.split("|")[48].split("|")[0];
|
|
67
|
-
let p50 = res.data.split("|")[49].split("|")[0];
|
|
68
|
-
let p51 = res.data.split("|")[50].split("|")[0];
|
|
69
|
-
let p52 = res.data.split("|")[51].split("|")[0];
|
|
70
|
-
let p53 = res.data.split("|")[52].split("|")[0];
|
|
71
|
-
let p54 = res.data.split("|")[53].split("|")[0];
|
|
72
|
-
let p55 = res.data.split("|")[54].split("|")[0];
|
|
73
|
-
let p56 = res.data.split("|")[55].split("|")[0];
|
|
74
|
-
let p57 = res.data.split("|")[56].split("|")[0];
|
|
75
|
-
let p58 = res.data.split("|")[57].split("|")[0];
|
|
76
|
-
let p59 = res.data.split("|")[58].split("|")[0];
|
|
77
|
-
let p60 = res.data.split("|")[59].split("|")[0];
|
|
78
|
-
let p61 = res.data.split("|")[60].split("|")[0];
|
|
79
|
-
let p62 = res.data.split("|")[61].split("|")[0];
|
|
80
|
-
let p63 = res.data.split("|")[62].split("|")[0];
|
|
81
|
-
let p64 = res.data.split("|")[63].split("|")[0];
|
|
82
|
-
let p65 = res.data.split("|")[64].split("|")[0];
|
|
83
|
-
let p66 = res.data.split("|")[65].split("|")[0];
|
|
84
|
-
let p67 = res.data.split("|")[66].split("|")[0];
|
|
85
|
-
let p68 = res.data.split("|")[67].split("|")[0];
|
|
86
|
-
let p69 = res.data.split("|")[68].split("|")[0];
|
|
87
|
-
let p70 = res.data.split("|")[69].split("|")[0];
|
|
88
|
-
let p71 = res.data.split("|")[70].split("|")[0];
|
|
89
|
-
let p72 = res.data.split("|")[71].split("|")[0];
|
|
90
|
-
let p73 = res.data.split("|")[72].split("|")[0];
|
|
91
|
-
let p74 = res.data.split("|")[73].split("|")[0];
|
|
92
|
-
let p75 = res.data.split("|")[74].split("|")[0];
|
|
93
|
-
let p76 = res.data.split("|")[75].split("|")[0];
|
|
94
|
-
let p77 = res.data.split("|")[76].split("|")[0];
|
|
95
|
-
let p78 = res.data.split("|")[77].split("|")[0];
|
|
96
|
-
let p79 = res.data.split("|")[78].split("|")[0];
|
|
97
|
-
let p80 = res.data.split("|")[79].split("|")[0];
|
|
98
|
-
let p81 = res.data.split("|")[80].split("|")[0];
|
|
99
|
-
let p82 = res.data.split("|")[81].split("|")[0];
|
|
100
|
-
let p83 = res.data.split("|")[82].split("|")[0];
|
|
101
|
-
let p84 = res.data.split("|")[83].split("|")[0];
|
|
102
|
-
let p85 = res.data.split("|")[84].split("|")[0];
|
|
103
|
-
let p86 = res.data.split("|")[85].split("|")[0];
|
|
104
|
-
let p87 = res.data.split("|")[86].split("|")[0];
|
|
105
|
-
let p88 = res.data.split("|")[87].split("|")[0];
|
|
106
|
-
let p89 = res.data.split("|")[88].split("|")[0];
|
|
107
|
-
let p90 = res.data.split("|")[89].split("|")[0];
|
|
108
|
-
let p91 = res.data.split("|")[90].split("|")[0];
|
|
109
|
-
let p92 = res.data.split("|")[91].split("|")[0];
|
|
110
|
-
let p93 = res.data.split("|")[92].split("|")[0];
|
|
111
|
-
let p94 = res.data.split("|")[93].split("|")[0];
|
|
112
|
-
let p95 = res.data.split("|")[94].split("|")[0];
|
|
113
|
-
let p96 = res.data.split("|")[95].split("|")[0];
|
|
114
|
-
let p97 = res.data.split("|")[96].split("|")[0];
|
|
115
|
-
let p98 = res.data.split("|")[97].split("|")[0];
|
|
116
|
-
let p99 = res.data.split("|")[98].split("|")[0];
|
|
117
|
-
let p100 = res.data.split("|")[99].split("|")[0];
|
|
18
|
+
let players = res.data.split("|");
|
|
19
|
+
let emptyElem = players.indexOf(100);
|
|
118
20
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
decodeUserResult(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
decodeUserResult(p8),
|
|
128
|
-
decodeUserResult(p9),
|
|
129
|
-
decodeUserResult(p10),
|
|
130
|
-
decodeUserResult(p11),
|
|
131
|
-
decodeUserResult(p12),
|
|
132
|
-
decodeUserResult(p13),
|
|
133
|
-
decodeUserResult(p14),
|
|
134
|
-
decodeUserResult(p15),
|
|
135
|
-
decodeUserResult(p16),
|
|
136
|
-
decodeUserResult(p17),
|
|
137
|
-
decodeUserResult(p18),
|
|
138
|
-
decodeUserResult(p19),
|
|
139
|
-
decodeUserResult(p20),
|
|
140
|
-
decodeUserResult(p21),
|
|
141
|
-
decodeUserResult(p22),
|
|
142
|
-
decodeUserResult(p23),
|
|
143
|
-
decodeUserResult(p24),
|
|
144
|
-
decodeUserResult(p25),
|
|
145
|
-
decodeUserResult(p26),
|
|
146
|
-
decodeUserResult(p27),
|
|
147
|
-
decodeUserResult(p28),
|
|
148
|
-
decodeUserResult(p29),
|
|
149
|
-
decodeUserResult(p30),
|
|
150
|
-
decodeUserResult(p31),
|
|
151
|
-
decodeUserResult(p32),
|
|
152
|
-
decodeUserResult(p33),
|
|
153
|
-
decodeUserResult(p34),
|
|
154
|
-
decodeUserResult(p35),
|
|
155
|
-
decodeUserResult(p36),
|
|
156
|
-
decodeUserResult(p37),
|
|
157
|
-
decodeUserResult(p38),
|
|
158
|
-
decodeUserResult(p39),
|
|
159
|
-
decodeUserResult(p40),
|
|
160
|
-
decodeUserResult(p41),
|
|
161
|
-
decodeUserResult(p42),
|
|
162
|
-
decodeUserResult(p43),
|
|
163
|
-
decodeUserResult(p44),
|
|
164
|
-
decodeUserResult(p45),
|
|
165
|
-
decodeUserResult(p46),
|
|
166
|
-
decodeUserResult(p47),
|
|
167
|
-
decodeUserResult(p48),
|
|
168
|
-
decodeUserResult(p49),
|
|
169
|
-
decodeUserResult(p50),
|
|
170
|
-
decodeUserResult(p51),
|
|
171
|
-
decodeUserResult(p52),
|
|
172
|
-
decodeUserResult(p53),
|
|
173
|
-
decodeUserResult(p54),
|
|
174
|
-
decodeUserResult(p55),
|
|
175
|
-
decodeUserResult(p56),
|
|
176
|
-
decodeUserResult(p57),
|
|
177
|
-
decodeUserResult(p58),
|
|
178
|
-
decodeUserResult(p59),
|
|
179
|
-
decodeUserResult(p60),
|
|
180
|
-
decodeUserResult(p61),
|
|
181
|
-
decodeUserResult(p62),
|
|
182
|
-
decodeUserResult(p63),
|
|
183
|
-
decodeUserResult(p64),
|
|
184
|
-
decodeUserResult(p65),
|
|
185
|
-
decodeUserResult(p66),
|
|
186
|
-
decodeUserResult(p67),
|
|
187
|
-
decodeUserResult(p68),
|
|
188
|
-
decodeUserResult(p69),
|
|
189
|
-
decodeUserResult(p70),
|
|
190
|
-
decodeUserResult(p71),
|
|
191
|
-
decodeUserResult(p72),
|
|
192
|
-
decodeUserResult(p73),
|
|
193
|
-
decodeUserResult(p74),
|
|
194
|
-
decodeUserResult(p75),
|
|
195
|
-
decodeUserResult(p76),
|
|
196
|
-
decodeUserResult(p77),
|
|
197
|
-
decodeUserResult(p78),
|
|
198
|
-
decodeUserResult(p79),
|
|
199
|
-
decodeUserResult(p80),
|
|
200
|
-
decodeUserResult(p81),
|
|
201
|
-
decodeUserResult(p82),
|
|
202
|
-
decodeUserResult(p83),
|
|
203
|
-
decodeUserResult(p84),
|
|
204
|
-
decodeUserResult(p85),
|
|
205
|
-
decodeUserResult(p86),
|
|
206
|
-
decodeUserResult(p87),
|
|
207
|
-
decodeUserResult(p88),
|
|
208
|
-
decodeUserResult(p89),
|
|
209
|
-
decodeUserResult(p90),
|
|
210
|
-
decodeUserResult(p91),
|
|
211
|
-
decodeUserResult(p92),
|
|
212
|
-
decodeUserResult(p93),
|
|
213
|
-
decodeUserResult(p94),
|
|
214
|
-
decodeUserResult(p95),
|
|
215
|
-
decodeUserResult(p96),
|
|
216
|
-
decodeUserResult(p97),
|
|
217
|
-
decodeUserResult(p98),
|
|
218
|
-
decodeUserResult(p99),
|
|
219
|
-
decodeUserResult(p100)
|
|
220
|
-
];
|
|
21
|
+
players.splice(emptyElem, 1);
|
|
22
|
+
|
|
23
|
+
let result = [];
|
|
24
|
+
players.forEach(p => {
|
|
25
|
+
result.push(decodeUserResult(p));
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
return result;
|
|
221
29
|
}
|
|
222
30
|
}
|
|
@@ -18,39 +18,11 @@ module.exports = {
|
|
|
18
18
|
throw new Error(e.response.data);
|
|
19
19
|
})
|
|
20
20
|
|
|
21
|
-
let
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
let sixth = res.data.split("|")[5].split("|")[0];
|
|
27
|
-
let seventh = res.data.split("|")[6].split("|")[0];
|
|
28
|
-
let eighth = res.data.split("|")[7].split("|")[0];
|
|
29
|
-
let ninth = res.data.split("|")[8].split("|")[0];
|
|
30
|
-
let tenth = res.data.split("|")[9].split("|")[0];
|
|
31
|
-
let eleventh = res.data.split("|")[10].split("|")[0];
|
|
32
|
-
let twelfth = res.data.split("|")[11].split("|")[0];
|
|
33
|
-
let thirteenth = res.data.split("|")[12].split("|")[0];
|
|
34
|
-
let fourteenth = res.data.split("|")[13].split("|")[0];
|
|
35
|
-
let fifteenth = res.data.split("|")[14].split("|")[0];
|
|
36
|
-
|
|
37
|
-
const result = [
|
|
38
|
-
decodeGJGauntlet(first),
|
|
39
|
-
decodeGJGauntlet(second),
|
|
40
|
-
decodeGJGauntlet(third),
|
|
41
|
-
decodeGJGauntlet(fourth),
|
|
42
|
-
decodeGJGauntlet(fifth),
|
|
43
|
-
decodeGJGauntlet(sixth),
|
|
44
|
-
decodeGJGauntlet(seventh),
|
|
45
|
-
decodeGJGauntlet(eighth),
|
|
46
|
-
decodeGJGauntlet(ninth),
|
|
47
|
-
decodeGJGauntlet(tenth),
|
|
48
|
-
decodeGJGauntlet(eleventh),
|
|
49
|
-
decodeGJGauntlet(twelfth),
|
|
50
|
-
decodeGJGauntlet(thirteenth),
|
|
51
|
-
decodeGJGauntlet(fourteenth),
|
|
52
|
-
decodeGJGauntlet(fifteenth),
|
|
53
|
-
]
|
|
21
|
+
let gauntlets = res.data.split("|");
|
|
22
|
+
let result = [];
|
|
23
|
+
gauntlets.forEach(g => {
|
|
24
|
+
result.push(decodeGJGauntlet(g));
|
|
25
|
+
})
|
|
54
26
|
|
|
55
27
|
return result;
|
|
56
28
|
}
|
package/functions/getProfile.js
CHANGED
|
@@ -94,13 +94,16 @@ module.exports = {
|
|
|
94
94
|
"2": "elder"
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
let colors = require("../misc/colors.json");
|
|
98
|
+
const { rgbToHEX } = require("../misc/rgbToHEX.js");
|
|
99
|
+
|
|
97
100
|
const result = {
|
|
98
101
|
username: username,
|
|
99
102
|
playerID: Number(playerID),
|
|
100
103
|
accountID: Number(accountID),
|
|
101
104
|
rank: Number(rank),
|
|
102
|
-
color1:
|
|
103
|
-
color2:
|
|
105
|
+
color1: rgbToHEX(colors[p1col]),
|
|
106
|
+
color2: rgbToHEX(colors[p2col]),
|
|
104
107
|
stars: Number(stars),
|
|
105
108
|
diamonds: Number(diamonds),
|
|
106
109
|
secretCoins: Number(goldCoins),
|
package/functions/getTop100.js
CHANGED
|
@@ -15,208 +15,16 @@ module.exports = {
|
|
|
15
15
|
headers: headers
|
|
16
16
|
})
|
|
17
17
|
|
|
18
|
-
let
|
|
19
|
-
let
|
|
20
|
-
let p3 = res.data.split("|")[2].split("|")[0];
|
|
21
|
-
let p4 = res.data.split("|")[3].split("|")[0];
|
|
22
|
-
let p5 = res.data.split("|")[4].split("|")[0];
|
|
23
|
-
let p6 = res.data.split("|")[5].split("|")[0];
|
|
24
|
-
let p7 = res.data.split("|")[6].split("|")[0];
|
|
25
|
-
let p8 = res.data.split("|")[7].split("|")[0];
|
|
26
|
-
let p9 = res.data.split("|")[8].split("|")[0];
|
|
27
|
-
let p10 = res.data.split("|")[9].split("|")[0];
|
|
28
|
-
let p11 = res.data.split("|")[10].split("|")[0];
|
|
29
|
-
let p12 = res.data.split("|")[11].split("|")[0];
|
|
30
|
-
let p13 = res.data.split("|")[12].split("|")[0];
|
|
31
|
-
let p14 = res.data.split("|")[13].split("|")[0];
|
|
32
|
-
let p15 = res.data.split("|")[14].split("|")[0];
|
|
33
|
-
let p16 = res.data.split("|")[15].split("|")[0];
|
|
34
|
-
let p17 = res.data.split("|")[16].split("|")[0];
|
|
35
|
-
let p18 = res.data.split("|")[17].split("|")[0];
|
|
36
|
-
let p19 = res.data.split("|")[18].split("|")[0];
|
|
37
|
-
let p20 = res.data.split("|")[19].split("|")[0];
|
|
38
|
-
let p21 = res.data.split("|")[20].split("|")[0];
|
|
39
|
-
let p22 = res.data.split("|")[21].split("|")[0];
|
|
40
|
-
let p23 = res.data.split("|")[22].split("|")[0];
|
|
41
|
-
let p24 = res.data.split("|")[23].split("|")[0];
|
|
42
|
-
let p25 = res.data.split("|")[24].split("|")[0];
|
|
43
|
-
let p26 = res.data.split("|")[25].split("|")[0];
|
|
44
|
-
let p27 = res.data.split("|")[26].split("|")[0];
|
|
45
|
-
let p28 = res.data.split("|")[27].split("|")[0];
|
|
46
|
-
let p29 = res.data.split("|")[28].split("|")[0];
|
|
47
|
-
let p30 = res.data.split("|")[29].split("|")[0];
|
|
48
|
-
let p31 = res.data.split("|")[30].split("|")[0];
|
|
49
|
-
let p32 = res.data.split("|")[31].split("|")[0];
|
|
50
|
-
let p33 = res.data.split("|")[32].split("|")[0];
|
|
51
|
-
let p34 = res.data.split("|")[33].split("|")[0];
|
|
52
|
-
let p35 = res.data.split("|")[34].split("|")[0];
|
|
53
|
-
let p36 = res.data.split("|")[35].split("|")[0];
|
|
54
|
-
let p37 = res.data.split("|")[36].split("|")[0];
|
|
55
|
-
let p38 = res.data.split("|")[37].split("|")[0];
|
|
56
|
-
let p39 = res.data.split("|")[38].split("|")[0];
|
|
57
|
-
let p40 = res.data.split("|")[39].split("|")[0];
|
|
58
|
-
let p41 = res.data.split("|")[40].split("|")[0];
|
|
59
|
-
let p42 = res.data.split("|")[41].split("|")[0];
|
|
60
|
-
let p43 = res.data.split("|")[42].split("|")[0];
|
|
61
|
-
let p44 = res.data.split("|")[43].split("|")[0];
|
|
62
|
-
let p45 = res.data.split("|")[44].split("|")[0];
|
|
63
|
-
let p46 = res.data.split("|")[45].split("|")[0];
|
|
64
|
-
let p47 = res.data.split("|")[46].split("|")[0];
|
|
65
|
-
let p48 = res.data.split("|")[47].split("|")[0];
|
|
66
|
-
let p49 = res.data.split("|")[48].split("|")[0];
|
|
67
|
-
let p50 = res.data.split("|")[49].split("|")[0];
|
|
68
|
-
let p51 = res.data.split("|")[50].split("|")[0];
|
|
69
|
-
let p52 = res.data.split("|")[51].split("|")[0];
|
|
70
|
-
let p53 = res.data.split("|")[52].split("|")[0];
|
|
71
|
-
let p54 = res.data.split("|")[53].split("|")[0];
|
|
72
|
-
let p55 = res.data.split("|")[54].split("|")[0];
|
|
73
|
-
let p56 = res.data.split("|")[55].split("|")[0];
|
|
74
|
-
let p57 = res.data.split("|")[56].split("|")[0];
|
|
75
|
-
let p58 = res.data.split("|")[57].split("|")[0];
|
|
76
|
-
let p59 = res.data.split("|")[58].split("|")[0];
|
|
77
|
-
let p60 = res.data.split("|")[59].split("|")[0];
|
|
78
|
-
let p61 = res.data.split("|")[60].split("|")[0];
|
|
79
|
-
let p62 = res.data.split("|")[61].split("|")[0];
|
|
80
|
-
let p63 = res.data.split("|")[62].split("|")[0];
|
|
81
|
-
let p64 = res.data.split("|")[63].split("|")[0];
|
|
82
|
-
let p65 = res.data.split("|")[64].split("|")[0];
|
|
83
|
-
let p66 = res.data.split("|")[65].split("|")[0];
|
|
84
|
-
let p67 = res.data.split("|")[66].split("|")[0];
|
|
85
|
-
let p68 = res.data.split("|")[67].split("|")[0];
|
|
86
|
-
let p69 = res.data.split("|")[68].split("|")[0];
|
|
87
|
-
let p70 = res.data.split("|")[69].split("|")[0];
|
|
88
|
-
let p71 = res.data.split("|")[70].split("|")[0];
|
|
89
|
-
let p72 = res.data.split("|")[71].split("|")[0];
|
|
90
|
-
let p73 = res.data.split("|")[72].split("|")[0];
|
|
91
|
-
let p74 = res.data.split("|")[73].split("|")[0];
|
|
92
|
-
let p75 = res.data.split("|")[74].split("|")[0];
|
|
93
|
-
let p76 = res.data.split("|")[75].split("|")[0];
|
|
94
|
-
let p77 = res.data.split("|")[76].split("|")[0];
|
|
95
|
-
let p78 = res.data.split("|")[77].split("|")[0];
|
|
96
|
-
let p79 = res.data.split("|")[78].split("|")[0];
|
|
97
|
-
let p80 = res.data.split("|")[79].split("|")[0];
|
|
98
|
-
let p81 = res.data.split("|")[80].split("|")[0];
|
|
99
|
-
let p82 = res.data.split("|")[81].split("|")[0];
|
|
100
|
-
let p83 = res.data.split("|")[82].split("|")[0];
|
|
101
|
-
let p84 = res.data.split("|")[83].split("|")[0];
|
|
102
|
-
let p85 = res.data.split("|")[84].split("|")[0];
|
|
103
|
-
let p86 = res.data.split("|")[85].split("|")[0];
|
|
104
|
-
let p87 = res.data.split("|")[86].split("|")[0];
|
|
105
|
-
let p88 = res.data.split("|")[87].split("|")[0];
|
|
106
|
-
let p89 = res.data.split("|")[88].split("|")[0];
|
|
107
|
-
let p90 = res.data.split("|")[89].split("|")[0];
|
|
108
|
-
let p91 = res.data.split("|")[90].split("|")[0];
|
|
109
|
-
let p92 = res.data.split("|")[91].split("|")[0];
|
|
110
|
-
let p93 = res.data.split("|")[92].split("|")[0];
|
|
111
|
-
let p94 = res.data.split("|")[93].split("|")[0];
|
|
112
|
-
let p95 = res.data.split("|")[94].split("|")[0];
|
|
113
|
-
let p96 = res.data.split("|")[95].split("|")[0];
|
|
114
|
-
let p97 = res.data.split("|")[96].split("|")[0];
|
|
115
|
-
let p98 = res.data.split("|")[97].split("|")[0];
|
|
116
|
-
let p99 = res.data.split("|")[98].split("|")[0];
|
|
117
|
-
let p100 = res.data.split("|")[99].split("|")[0];
|
|
18
|
+
let players = res.data.split("|");
|
|
19
|
+
let emptyElem = players.indexOf(100);
|
|
118
20
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
decodeUserResult(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
decodeUserResult(p8),
|
|
128
|
-
decodeUserResult(p9),
|
|
129
|
-
decodeUserResult(p10),
|
|
130
|
-
decodeUserResult(p11),
|
|
131
|
-
decodeUserResult(p12),
|
|
132
|
-
decodeUserResult(p13),
|
|
133
|
-
decodeUserResult(p14),
|
|
134
|
-
decodeUserResult(p15),
|
|
135
|
-
decodeUserResult(p16),
|
|
136
|
-
decodeUserResult(p17),
|
|
137
|
-
decodeUserResult(p18),
|
|
138
|
-
decodeUserResult(p19),
|
|
139
|
-
decodeUserResult(p20),
|
|
140
|
-
decodeUserResult(p21),
|
|
141
|
-
decodeUserResult(p22),
|
|
142
|
-
decodeUserResult(p23),
|
|
143
|
-
decodeUserResult(p24),
|
|
144
|
-
decodeUserResult(p25),
|
|
145
|
-
decodeUserResult(p26),
|
|
146
|
-
decodeUserResult(p27),
|
|
147
|
-
decodeUserResult(p28),
|
|
148
|
-
decodeUserResult(p29),
|
|
149
|
-
decodeUserResult(p30),
|
|
150
|
-
decodeUserResult(p31),
|
|
151
|
-
decodeUserResult(p32),
|
|
152
|
-
decodeUserResult(p33),
|
|
153
|
-
decodeUserResult(p34),
|
|
154
|
-
decodeUserResult(p35),
|
|
155
|
-
decodeUserResult(p36),
|
|
156
|
-
decodeUserResult(p37),
|
|
157
|
-
decodeUserResult(p38),
|
|
158
|
-
decodeUserResult(p39),
|
|
159
|
-
decodeUserResult(p40),
|
|
160
|
-
decodeUserResult(p41),
|
|
161
|
-
decodeUserResult(p42),
|
|
162
|
-
decodeUserResult(p43),
|
|
163
|
-
decodeUserResult(p44),
|
|
164
|
-
decodeUserResult(p45),
|
|
165
|
-
decodeUserResult(p46),
|
|
166
|
-
decodeUserResult(p47),
|
|
167
|
-
decodeUserResult(p48),
|
|
168
|
-
decodeUserResult(p49),
|
|
169
|
-
decodeUserResult(p50),
|
|
170
|
-
decodeUserResult(p51),
|
|
171
|
-
decodeUserResult(p52),
|
|
172
|
-
decodeUserResult(p53),
|
|
173
|
-
decodeUserResult(p54),
|
|
174
|
-
decodeUserResult(p55),
|
|
175
|
-
decodeUserResult(p56),
|
|
176
|
-
decodeUserResult(p57),
|
|
177
|
-
decodeUserResult(p58),
|
|
178
|
-
decodeUserResult(p59),
|
|
179
|
-
decodeUserResult(p60),
|
|
180
|
-
decodeUserResult(p61),
|
|
181
|
-
decodeUserResult(p62),
|
|
182
|
-
decodeUserResult(p63),
|
|
183
|
-
decodeUserResult(p64),
|
|
184
|
-
decodeUserResult(p65),
|
|
185
|
-
decodeUserResult(p66),
|
|
186
|
-
decodeUserResult(p67),
|
|
187
|
-
decodeUserResult(p68),
|
|
188
|
-
decodeUserResult(p69),
|
|
189
|
-
decodeUserResult(p70),
|
|
190
|
-
decodeUserResult(p71),
|
|
191
|
-
decodeUserResult(p72),
|
|
192
|
-
decodeUserResult(p73),
|
|
193
|
-
decodeUserResult(p74),
|
|
194
|
-
decodeUserResult(p75),
|
|
195
|
-
decodeUserResult(p76),
|
|
196
|
-
decodeUserResult(p77),
|
|
197
|
-
decodeUserResult(p78),
|
|
198
|
-
decodeUserResult(p79),
|
|
199
|
-
decodeUserResult(p80),
|
|
200
|
-
decodeUserResult(p81),
|
|
201
|
-
decodeUserResult(p82),
|
|
202
|
-
decodeUserResult(p83),
|
|
203
|
-
decodeUserResult(p84),
|
|
204
|
-
decodeUserResult(p85),
|
|
205
|
-
decodeUserResult(p86),
|
|
206
|
-
decodeUserResult(p87),
|
|
207
|
-
decodeUserResult(p88),
|
|
208
|
-
decodeUserResult(p89),
|
|
209
|
-
decodeUserResult(p90),
|
|
210
|
-
decodeUserResult(p91),
|
|
211
|
-
decodeUserResult(p92),
|
|
212
|
-
decodeUserResult(p93),
|
|
213
|
-
decodeUserResult(p94),
|
|
214
|
-
decodeUserResult(p95),
|
|
215
|
-
decodeUserResult(p96),
|
|
216
|
-
decodeUserResult(p97),
|
|
217
|
-
decodeUserResult(p98),
|
|
218
|
-
decodeUserResult(p99),
|
|
219
|
-
decodeUserResult(p100)
|
|
220
|
-
];
|
|
21
|
+
players.splice(emptyElem, 1);
|
|
22
|
+
|
|
23
|
+
let result = [];
|
|
24
|
+
players.forEach(p => {
|
|
25
|
+
result.push(decodeUserResult(p));
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
return result;
|
|
221
29
|
}
|
|
222
30
|
}
|
|
@@ -5,6 +5,7 @@ module.exports = {
|
|
|
5
5
|
if(!content || content == "") throw new Error("Please provide an account post content!");
|
|
6
6
|
if(!str || str == "") throw new Error("Please provide a user ID or name!");
|
|
7
7
|
if(!password || password == "") throw new Error("Please provide a password!");
|
|
8
|
+
|
|
8
9
|
const axios = require("axios");
|
|
9
10
|
const { headers, server } = require("../config.json");
|
|
10
11
|
|
|
@@ -57,7 +57,9 @@ module.exports = {
|
|
|
57
57
|
headers: headers
|
|
58
58
|
}).catch(e => {
|
|
59
59
|
let edata = e.response.data;
|
|
60
|
-
if(edata ==
|
|
60
|
+
if(edata == -10) edata = "You're permanently banned from commenting by RobTop!";
|
|
61
|
+
if(edata.startsWith("temp_")) edata = `You're temporarily banned from commenting by RobTop or Elder Moderators!\nRemaining duration: ${edata.split("_")[1].split("_")[0]}\nReason: ${edata.split("_")[2]}`;
|
|
62
|
+
if(edata == '') edata = "Whoops, the servers have rejected your request!";
|
|
61
63
|
throw new Error(edata)
|
|
62
64
|
})
|
|
63
65
|
|
package/misc/colors.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"0": "125,255,0",
|
|
3
|
+
"1": "0,255,0",
|
|
4
|
+
"2": "0,255,125",
|
|
5
|
+
"3": "0,255,255",
|
|
6
|
+
"4": "0,125,255",
|
|
7
|
+
"5": "0,0,255",
|
|
8
|
+
"6": "125,0,255",
|
|
9
|
+
"7": "255,0,255",
|
|
10
|
+
"8": "255,0,125",
|
|
11
|
+
"9": "255,0,0",
|
|
12
|
+
"10": "255,125,0",
|
|
13
|
+
"11": "255,255,0",
|
|
14
|
+
"12": "255,255,255",
|
|
15
|
+
"13": "185,0,255",
|
|
16
|
+
"14": "255,185,0",
|
|
17
|
+
"15": "0,0,0",
|
|
18
|
+
"16": "0,200,255",
|
|
19
|
+
"17": "175,175,175",
|
|
20
|
+
"18": "90,90,90",
|
|
21
|
+
"19": "255,125,125",
|
|
22
|
+
"20": "0,175,75",
|
|
23
|
+
"21": "0,125,125",
|
|
24
|
+
"22": "0,75,175",
|
|
25
|
+
"23": "75,0,175",
|
|
26
|
+
"24": "125,0,125",
|
|
27
|
+
"25": "175,0,75",
|
|
28
|
+
"26": "175,75,0",
|
|
29
|
+
"27": "125,125,0",
|
|
30
|
+
"28": "75,175,0",
|
|
31
|
+
"29": "255,75,0",
|
|
32
|
+
"30": "150,50,0",
|
|
33
|
+
"31": "150,100,0",
|
|
34
|
+
"32": "100,150,0",
|
|
35
|
+
"33": "0,150,100",
|
|
36
|
+
"34": "0,100,150",
|
|
37
|
+
"35": "100,0,150",
|
|
38
|
+
"36": "150,0,100",
|
|
39
|
+
"37": "150,0,0",
|
|
40
|
+
"38": "0,150,0",
|
|
41
|
+
"39": "0,0,150",
|
|
42
|
+
"40": "125,255,175",
|
|
43
|
+
"41": "125,125,255"
|
|
44
|
+
}
|
package/misc/decodeGJComment.js
CHANGED
|
@@ -2,25 +2,32 @@ module.exports = {
|
|
|
2
2
|
decodeGJComment:
|
|
3
3
|
function(comment) {
|
|
4
4
|
const bs = require("js-base64");
|
|
5
|
+
|
|
6
|
+
let spl = comment.split("~");
|
|
7
|
+
let cmnt = [];
|
|
8
|
+
for(let i =0;i<spl.length;i++) {
|
|
9
|
+
if(i%2!=0) {
|
|
10
|
+
cmnt.push(spl[i-1]+`~`+spl[i]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
5
13
|
|
|
6
|
-
let commentContent =
|
|
7
|
-
let playerID =
|
|
8
|
-
let likes =
|
|
9
|
-
let percent =
|
|
10
|
-
let age =
|
|
11
|
-
let
|
|
12
|
-
let username = comment.split(":1~")[1].split("~9
|
|
13
|
-
|
|
14
|
-
if(messageID.includes("~")) messageID = comment.split("~6~")[1].split("~11~")[0];
|
|
15
|
-
if(playerID.includes("~")) playerID = comment.split("~3~")[1].split("~4~")[0].split("~")[0];
|
|
14
|
+
let commentContent = cmnt[0].split("2~")[1];
|
|
15
|
+
let playerID = cmnt[1].split("3~")[1];
|
|
16
|
+
let likes = cmnt[2].split("4~")[1];
|
|
17
|
+
let percent = cmnt[4].split("10~")[1];
|
|
18
|
+
let age = cmnt[5].split("9~")[1];
|
|
19
|
+
let msgID = cmnt[6].split("6~")[1];
|
|
20
|
+
let username = comment.split(":1~")[1].split("~9")[0];
|
|
16
21
|
|
|
22
|
+
if(msgID.includes(":")) msgID = msgID.split(":")[0];
|
|
23
|
+
|
|
17
24
|
const res = {
|
|
18
25
|
username: username,
|
|
19
26
|
content: bs.decode(commentContent.replace(/_/g, '/').replace(/-/g, '+')),
|
|
20
27
|
playerID: Number(playerID),
|
|
21
28
|
likes: Number(likes),
|
|
22
29
|
percent: Number(percent),
|
|
23
|
-
id: Number(
|
|
30
|
+
id: Number(msgID),
|
|
24
31
|
age: age
|
|
25
32
|
}
|
|
26
33
|
|
package/misc/decodeLevel.js
CHANGED
|
@@ -41,6 +41,8 @@ module.exports = {
|
|
|
41
41
|
let disliked = false;
|
|
42
42
|
if(likes.includes("-")) disliked = true;
|
|
43
43
|
|
|
44
|
+
if(bs.decode(desc) == '') desc = "KE5vIGRlc2NyaXB0aW9uIHByb3ZpZGVkKQ=="
|
|
45
|
+
|
|
44
46
|
if(verifiedCoins == "0") verifiedCoins = false;
|
|
45
47
|
if(verifiedCoins == "1") verifiedCoins = true;
|
|
46
48
|
|
package/misc/decodeMapPack.js
CHANGED
|
@@ -37,19 +37,7 @@ module.exports = {
|
|
|
37
37
|
"10": "Extreme Demon",
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
let r = color.split(",")[0];
|
|
42
|
-
let g = color.split(",")[1].split(",")[0];
|
|
43
|
-
let b = color.split(",")[2];
|
|
44
|
-
|
|
45
|
-
if(b.includes("#")) b = b.split("#")[0]
|
|
46
|
-
|
|
47
|
-
let rHex = Number(r).toString(16);
|
|
48
|
-
let gHex = Number(g).toString(16);
|
|
49
|
-
let bHex = Number(b).toString(16);
|
|
50
|
-
|
|
51
|
-
return `#${rHex.length == 1 ? "0" + rHex : rHex}${gHex.length == 1 ? "0" + gHex : gHex}${bHex.length == 1 ? "0" + bHex : bHex}`.toUpperCase();
|
|
52
|
-
}
|
|
40
|
+
const { rgbToHEX } = require("./rgbToHEX.js");
|
|
53
41
|
|
|
54
42
|
const result = {
|
|
55
43
|
name: name,
|
package/misc/decodeUserResult.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
decodeUserResult:
|
|
3
3
|
function(user) {
|
|
4
|
-
|
|
4
|
+
let spl = user.split(':');
|
|
5
5
|
let userInfo = [];
|
|
6
6
|
for(let i =0;i<spl.length;i++) {
|
|
7
7
|
if(i%2!=0) {
|
|
8
8
|
userInfo.push(spl[i-1]+`:`+spl[i]);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
let name = userInfo[0].split("1:")[1];
|
|
13
13
|
let playerID = userInfo[1].split("2:")[1];
|
|
14
14
|
let coins = userInfo[2].split("13:")[1];
|
|
@@ -22,13 +22,16 @@ module.exports = {
|
|
|
22
22
|
let diamonds = userInfo[13].split("46:")[1];
|
|
23
23
|
let demons = userInfo[14].split("4:")[1];
|
|
24
24
|
|
|
25
|
+
let colors = require("./colors.json");
|
|
26
|
+
const { rgbToHEX } = require("./rgbToHEX.js");
|
|
27
|
+
|
|
25
28
|
const result = {
|
|
26
29
|
username: name.trim(),
|
|
27
30
|
playerID: Number(playerID),
|
|
28
31
|
accountID: Number(accID),
|
|
29
32
|
rank: Number(rank),
|
|
30
|
-
color1:
|
|
31
|
-
color2:
|
|
33
|
+
color1: rgbToHEX(colors[p1col]),
|
|
34
|
+
color2: rgbToHEX(colors[p2col]),
|
|
32
35
|
stars: Number(stars),
|
|
33
36
|
diamonds: Number(diamonds),
|
|
34
37
|
secretCoins: Number(coins),
|
package/misc/rgbToHEX.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
rgbToHEX:
|
|
3
|
+
function(color) {
|
|
4
|
+
let r = color.split(",")[0];
|
|
5
|
+
let g = color.split(",")[1].split(",")[0];
|
|
6
|
+
let b = color.split(",")[2];
|
|
7
|
+
|
|
8
|
+
if(b.includes("#")) b = b.split("#")[0];
|
|
9
|
+
|
|
10
|
+
let rHex = Number(r).toString(16);
|
|
11
|
+
let gHex = Number(g).toString(16);
|
|
12
|
+
let bHex = Number(b).toString(16);
|
|
13
|
+
|
|
14
|
+
return `#${rHex.length == 1 ? "0" + rHex : rHex}${gHex.length == 1 ? "0" + gHex : gHex}${bHex.length == 1 ? "0" + bHex : bHex}`.toUpperCase();
|
|
15
|
+
}
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gj-boomlings-api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "A light-weight Geometry Dash API wrapper",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "
|
|
7
|
+
"test": "node .",
|
|
8
8
|
"start": "node ."
|
|
9
9
|
},
|
|
10
10
|
"author": "shikoshib",
|
|
11
|
+
"license": "ISC",
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
13
14
|
"url": "git+https://github.com/shikoshib/gj-boomlings-api.git"
|
|
@@ -25,7 +26,6 @@
|
|
|
25
26
|
"gaming",
|
|
26
27
|
"robtop"
|
|
27
28
|
],
|
|
28
|
-
"license": "ISC",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"axios": "^1.2.1",
|
|
31
31
|
"js-base64": "^3.7.3"
|