1.0.2 • Published 2 years ago

sblapi-revised v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Shield Bot List API

Hey, welcome to the Shield Bot List API. Lets get straight to the point!

Authors

Support

For support, you may create a private ticket or go in the help channel in our discord.

Discord: https://discord.gg/rmZkZPR5CX

Usage/Examples

Server Count Post

const APIs = require('sblapi-revised');
// client should be defined as your discord client.
const serverCountAPI = new APIs.serverCountAPI('authtoken', client);
serverCountAPI.init().then(response => console.log(response));
// If you want to get a json response, you can do JSON.parse() method

Get Likes Last 24 hours

const likeAPI = new APIs.likeApi('authtoken', client);
likeAPI.init().then(textRep => {
    const response = JSON.parse(textRep);
    console.log(response.users.length);
});
// parse it so you can access JSON props.

Thank you for using Shield Bot List