gj-boomlings-api 0.1.6 → 0.1.7
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/README.md +21 -21
- package/functions/dlLevel.js +1 -1
- package/functions/getProfile.js +20 -8
- package/index.js +3 -1
- package/package.json +1 -1
- package/t.txt +1 -0
package/README.md
CHANGED
|
@@ -10,45 +10,45 @@ So basically this function downloads the entire level and converts the response
|
|
|
10
10
|
|
|
11
11
|
```js
|
|
12
12
|
const gd = require("gj-boomlings-api");
|
|
13
|
-
gd.dlLevel(
|
|
13
|
+
gd.dlLevel(58825144).then(console.log);
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Returns:
|
|
17
17
|
|
|
18
18
|
```
|
|
19
19
|
{
|
|
20
|
-
id:
|
|
21
|
-
name: '
|
|
22
|
-
description: '
|
|
23
|
-
creator: '
|
|
24
|
-
level_version:
|
|
20
|
+
id: 58825144,
|
|
21
|
+
name: 'xo',
|
|
22
|
+
description: 'stream vertigo',
|
|
23
|
+
creator: 'KrmaL',
|
|
24
|
+
level_version: 2,
|
|
25
25
|
difficulty: 'Extreme Demon',
|
|
26
26
|
stars: 10,
|
|
27
|
-
downloads:
|
|
28
|
-
likes:
|
|
27
|
+
downloads: 2587512,
|
|
28
|
+
likes: 106611,
|
|
29
29
|
disliked: false,
|
|
30
30
|
length: 'XL',
|
|
31
|
-
password: '
|
|
31
|
+
password: '000007',
|
|
32
32
|
demon: true,
|
|
33
|
-
featured:
|
|
34
|
-
epic:
|
|
35
|
-
objects:
|
|
36
|
-
uploaded: '
|
|
37
|
-
updated: '
|
|
33
|
+
featured: false,
|
|
34
|
+
epic: false,
|
|
35
|
+
objects: 37838,
|
|
36
|
+
uploaded: '2 years',
|
|
37
|
+
updated: '2 years',
|
|
38
38
|
stars_requested: 10,
|
|
39
39
|
game_version: '2.1',
|
|
40
40
|
ldm: false,
|
|
41
|
-
copied:
|
|
41
|
+
copied: 0,
|
|
42
42
|
two_p: false,
|
|
43
43
|
coins: 0,
|
|
44
44
|
verified_coins: false,
|
|
45
45
|
song: {
|
|
46
|
-
name: '
|
|
47
|
-
id:
|
|
48
|
-
artist: '
|
|
49
|
-
artistId:
|
|
50
|
-
fileSize: '
|
|
51
|
-
link: '
|
|
46
|
+
name: 'XO (Eden Cover & Remake)',
|
|
47
|
+
id: 766165,
|
|
48
|
+
artist: 'aaronmusslewhite',
|
|
49
|
+
artistId: 2130,
|
|
50
|
+
fileSize: '6.1 MB',
|
|
51
|
+
link: 'http://audio.ngfiles.com/766000/766165_XO-Eden-Cover-amp-Remake.mp3'
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
```
|
package/functions/dlLevel.js
CHANGED
package/functions/getProfile.js
CHANGED
|
@@ -17,8 +17,8 @@ module.exports = {
|
|
|
17
17
|
headers: headers
|
|
18
18
|
})
|
|
19
19
|
|
|
20
|
-
let id =
|
|
21
|
-
if(Number(id) < 71) id =
|
|
20
|
+
let id = r.data.split(":16:")[1].split(":3:")[0];
|
|
21
|
+
if(Number(id) < 71 || id.includes(":")) id = r.data.split(":16:")[2].split(":3:")[0];
|
|
22
22
|
|
|
23
23
|
let GJUI20data = {
|
|
24
24
|
gameVersion: 21,
|
|
@@ -35,7 +35,7 @@ module.exports = {
|
|
|
35
35
|
if(res.data == -1) throw new Error("-1 Not found.")
|
|
36
36
|
if(res.data.toLowerCase() == "error code: 1005") throw new Error("1005 error: Your IP address has been blocked from sending requests to a server. It's recommended to use locally (directly from a PC).")
|
|
37
37
|
|
|
38
|
-
let dataWoSkins = `${res.data.split("
|
|
38
|
+
let dataWoSkins = `${res.data.split("21:")[0]}${res.data.split(":48:")[1]}`;
|
|
39
39
|
|
|
40
40
|
let username = dataWoSkins.split("1:")[1].split(":2:")[0];
|
|
41
41
|
let playerID = dataWoSkins.split(":2:")[1].split(":13:")[0];
|
|
@@ -48,14 +48,14 @@ module.exports = {
|
|
|
48
48
|
let msgState = dataWoSkins.split(":18:")[1].split(":19:")[0];
|
|
49
49
|
let friendsState = dataWoSkins.split(":19:")[1].split(":50:")[0];
|
|
50
50
|
let commentHistoryState = dataWoSkins.split(":50:")[1].split(":20:")[0];
|
|
51
|
-
let youtube = dataWoSkins.split(":20:")[1].split(":
|
|
51
|
+
let youtube = dataWoSkins.split(":20:")[1].split(":")[0];
|
|
52
52
|
let rank = dataWoSkins.split(":30:")[1].split(":16:")[0];
|
|
53
53
|
let accountID = dataWoSkins.split(":16:")[1].split(":31:")[0];
|
|
54
54
|
let twitter = dataWoSkins.split(":44:")[1].split(":45:")[0];
|
|
55
55
|
let twitch = dataWoSkins.split(":45:")[1].split(":49:")[0];
|
|
56
56
|
let modState = dataWoSkins.split(":49:")[1].split(":29:")[0];
|
|
57
57
|
|
|
58
|
-
if(youtube.includes(":")) youtube = dataWoSkins.split(":20:")[
|
|
58
|
+
if(youtube.includes(":")) youtube = dataWoSkins.split(":20:")[1].split(":")[0];
|
|
59
59
|
if(twitter.includes(":")) twitter = dataWoSkins.split(":44:")[2].split(":45:")[0];
|
|
60
60
|
if(twitch.includes(":")) twitch = dataWoSkins.split(":45:")[2].split(":49:")[0];
|
|
61
61
|
if(goldCoins.includes(":")) goldCoins = dataWoSkins.split(":13:")[2].split(":17:")[0];
|
|
@@ -66,10 +66,22 @@ module.exports = {
|
|
|
66
66
|
if(demons.includes(":")) demons = dataWoSkins.split(":4:")[2].split(":8:")[0];
|
|
67
67
|
if(msgState.includes(":")) msgState = dataWoSkins.split(":18:")[2].split(":19:")[0];
|
|
68
68
|
if(stars.includes(":")) stars = dataWoSkins.split("3:")[2].split(":46:")[0];
|
|
69
|
-
if(
|
|
70
|
-
if(dataWoSkins.split("3:")[
|
|
69
|
+
if(modState.includes(":")) modState = dataWoSkins.split(":49:")[2].split(":29:")[0];
|
|
70
|
+
if(dataWoSkins.split(":3:")[1].split(":46:")[0].startsWith("3:")) stars = dataWoSkins.split(":3:")[1].split("3:")[1].split(":46:")[0];
|
|
71
|
+
if(dataWoSkins.split("3:")[2].split(":46:")[0].includes(":")) {
|
|
72
|
+
stars = dataWoSkins.split("3:")[3].split(":46:")[0];
|
|
73
|
+
} else {
|
|
74
|
+
stars = stars;
|
|
75
|
+
}
|
|
76
|
+
if(dataWoSkins.split("3:")[3] != undefined || dataWoSkins.split("3:")[3] != "") {
|
|
77
|
+
if(dataWoSkins.split("3:")[3].split(":46:")[0] == "") {
|
|
78
|
+
stars = dataWoSkins.split("3:")[4].split(":46:")[0];
|
|
79
|
+
} else {
|
|
80
|
+
stars = stars;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
71
83
|
|
|
72
|
-
let ytLnk = `
|
|
84
|
+
let ytLnk = `htps://youtube.com/channel/${youtube}`;
|
|
73
85
|
let twitterLnk = `https://twitter.com/${twitter}`;
|
|
74
86
|
let twitchLnk = `https://twitch.tv/${twitch}`;
|
|
75
87
|
|
package/index.js
CHANGED
|
@@ -16,4 +16,6 @@ module.exports.decURLSafeBase64 = decURLSafeBase64;
|
|
|
16
16
|
module.exports.encURLSafeBase64 = encURLSafeBase64;
|
|
17
17
|
module.exports.getDailyLevel = getDailyLevel;
|
|
18
18
|
module.exports.getWeeklyDemon = getWeeklyDemon;
|
|
19
|
-
module.exports.getProfile = getProfile;
|
|
19
|
+
module.exports.getProfile = getProfile;
|
|
20
|
+
|
|
21
|
+
dlLevel("58825144").then(console.log)
|
package/package.json
CHANGED
package/t.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1:Ivav12:2:134186837:13:4:17:0:10:12:11:9:3:142:46:9:4:13:8:3:18:0:19:0:50:0:20::21:26:22:32:23:10:24:6:25:15:26:24:28:0:43:15:48:1:30:0:16:13768920:31:0:44::45::49:0:29:1
|