ddrace.js
v2.0.1
Published
Package for interact with DDNet API
Downloads
3
Readme
ddrace.js
Package for interact with DDNet API
If you need help join my discord https://discord.gg/K7sRzMsxp2 or if you need private ddnet modules, bot play with your account for finish map etc... Join my discord and ping me
Exemple how to use:
let DDRaceNetwork = require('ddrace.js');
let DDNet = new DDRaceNetwork.DDNet();
async function findPlayer(name) {
let user = await DDNet.searchplayer(name);
let username = user.user.username;
return username;
};
findPlayer('neiky').then(console.log);
Or find rank / map finished:
let DDRaceNetwork = require('ddrace.js');
let DDNet = new DDRaceNetwork.DDNet();
async function getRankAndFinishedMap(name) {
let user = await DDNet.searchplayer(name);
let rank = user.rank;
let finishedMaps = user.allFinsih;
return {
rank: rank,
finishedMaps: finishedMaps,
};
};
async function main() {
let player = await getRankAndFinishedMap('neiky');
console.log({
rank: player.rank,
finishedMaps: player.finishedMaps,
});
};
main();
npm i ddrace.js