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

Latest commit

 

History

History
57 lines (39 loc) · 1.42 KB

README.md

File metadata and controls

57 lines (39 loc) · 1.42 KB

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()