1.1.4 • Published 7 years ago

node-geometry-dash v1.1.4

Weekly downloads
9
License
ISC
Repository
github
Last release
7 years ago

node-geometry-dash

A node.js module for searching for levels, accounts, getting songs, and the leaderboards of the game Geometry Dash


How to install:

npm install node-geometry-dash

How to use:

const GDClient = require("node-geometry-dash");

const GD = new GDClient({
  username: "...",  // doesn't work yet :/
  password: "..."   // doesn't work yet :/
});

// Searching for levels
GD.levels("Bloodbath").then( levels => {
  console.log(levels[0]) /* { name: 'Bloodbath',
                              id: '10565740',
                              author: { name: 'Riot', id: '503085' },
                              song:
                               { name: 'At the Speed of Light',
                                 author: 'Dimrain47',
                                 id: '467339',
                                 size: '9.56MB',
                                 url: 'http://audio.ngfiles.com/467000/467339_At_the_Speed_of_Light_FINA.mp3' },
                              difficulty: 'Demon',
                              downloads: '1530678',
                              likes: '275137',
                              stars: '10',
                              featured: true,
                              description: 'Whose blood will be spilt in the Bloodbath? Who will the victors be? How many will survive? Good luck...',
                              length: 'XL',
                              coins: '0',
                              version: 1,
                              verifiedCoins: false,
                              requestedStars: '0' } */
});

// Searching for user accounts
GD.users("AnnoyingDog87").then( users => {
  console.log(users[0]) /*{ username: 'AnnoyingDog87',
                            id: '13506210',
                            coins: '45',
                            userCoins: '244',
                            stars: '972',
                            demons: '12',
                            creatorPoints: '0',
                            extID: '3626073' } */
});

Objects


Level object

KeyDescriptionExample
nameThe level nameBloodbath
idThe level id10565740
songA song object{...}
difficultyThe level difficultyDemon
downloadsThe amount of downloads the level has1530678
likesThe amount of likes the level has275137
starsThe amount of stars the level has10
featuredIf the level is featured or nottrue
descriptionThe level descriptionWhose blood will be spilt in the Bloodbath? Who will the victors be? How many will survive? Good luck...
lengthThe level lengthXL
coinsThe amount of coins the level has0
versionThe level version1
verifiedCoinsIf the level has user coins or notfalse
requestedStarsThe amount of stars the level owner requested0

User object

KeyDescriptionExample
usernameThe user's usernameAnnoyingDog87
idThe user's id13506210
coinsThe user's secret coins45
userCoinsThe user's secret coins244
starsThe amount of stars the user has972
demonsThe amount of demons the user has12
creatorPointsThe amount of creator points the user has0
extIDThe user's extID (???)0

Mappack object

KeyDescriptionExample
nameThe mappack nameAlpha Pack
idThe mappack id67
levelsAn array with all the 3 mappack levels...
starsThe amount of stars the mappack has2
coinsThe amount of coins the mappack has1
difficultyThe mappack difficultyEasy
rgbThe mappack color (rgb)...

Account Comment

KeyDescriptionExample
commentThe comment content"..."
likesThe amount of likes the comment has1
dateThe time the comment was posted1 second ago
commentIDThe comment id0

Level Comment

KeyDescriptionExample
commentThe comment content"..."
usernameThe author's usernameAnnoyingDog87
userIDThe author's id1
likesThe amount of likes the comment has1
dateThe time the comment was posted1 second ago
commentIDThe comment id0

Made by AnnoyingDog87

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago