Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

npm library for Geometry Dash's awful API. RobTop went nuts

Notifications You must be signed in to change notification settings

Aneks1/geometry-dash.js-deprecated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Title

Api wrapper for Geometry Dash. Made by me and my team, 100% made in TypeScript.

Installing

$ npm install geometry-dash.js

Usage

Getting a Profile:

// Gets user from its account ID
const user = await getUserFromAccountID({ id: '13976093' })

Logging in into your Account

const me = new Client()
await me.login({ username: 'Aneks', password: 'UmGnomoEstavaAndandoEncimaDoAsfalto' })

Posting Comments

await me.postProfileComment({ comment: 'Colon is a Furry' })
await me.postLevelComment({ id: '75206202', comment: 'This is too easy', percent: 100 })

Getting Someone's Comments

const comments = await getCommentsFromPlayerID({ playerID: '1234567' }) // Add page: "page number" for specific page. Default is 0

Relationships

const friends = me.relationships.friends
const blocked = me.relationships.blockedUsers

Friend Requests

const friendRequests = me.relationships.friendRequests
const robtopFriendRequest = friendRequests.filter((rqst: FriendRequest) => { return rqst.user.username == 'RobTop' })
const nexusFriendRequest = friendRequests.filter((rqst: FriendRequest) => { return rqst.user.username == 'Nexus' })

if(nexusFriendRequest) await nexusFriendRequest.accept()
if(robtopFriendRequest) await robtopFriendRequest.accept()

About

npm library for Geometry Dash's awful API. RobTop went nuts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published