1.11.5 • Published 5 years ago

pblapi.js v1.11.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

NPM

PBL-API.js

The official package for posting server count to PBL

Installation

Simply run npm install pblapi.js

Usage

Getting a bot:

const pbl = require('pblapi.js');
const PBL = new PBL.Client({
id: 'your-bot-id', key: 'your-bot-pbl-token'
});

PBL.getBot('some ID') //if you don't add ID it will take as default provided in preparing the client
 .then(res => console.log(res.data))
 .catch(err => console.log(err));

Getting a user:

const pbl = require('pblapi.js');
const PBL = new PBL.Client({
id: 'your-bot-id', key: 'your-bot-pbl-token'
});

PBL.getUser('some ID') 
 .then(res => console.log(res.data))
 .catch(err => console.log(err));

Posting Bot Server Count:

const pbl = require('pblapi.js');
const PBL = new PBL.Client({
id: 'your-bot-id', key: 'your-bot-pbl-token'
});

PBL.postStats(44) //must be a number
 .then(res => console.log(res.data))
 .catch(err => console.log(err));

You may see new features in fututre.

1.11.5

5 years ago

1.10.4

5 years ago

1.0.4

5 years ago