Skip to content

Fastering18/Blackerz-SDK-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackerz-SDK travis-ci

A developer kit for interact with our API.

Added type definition and more edit data.


Example node Post Bot Description

const blackerz = require("blackers-api-sdk")

// Getting bot data without authorize
blackerz.botData("777756503028400138").then(console.log)

// Sync with your bot, require auth
blackerz.Authorize("V1auth");
const scannerBOT = new blackerz.bot("bot id", {baseURL: "https://blackerz.herokuapp.com"}) // baseURL optional  

scannerBOT.edit({
    shortDescription: "this is short description",
    longDescription: "this is looooong description"
}).then(result => {
    console.log(`${JSON.stringify(result)}, sucess edited`)
}).catch(console.error)

scannerBOT.botData().then(console.log).catch(console.error)

//Check user vote
scannerBOT.checkVote("775363892167573535").then(console.log).catch(console.error) // true / false  

API

blackerz.botData(BOT_ID)
return bot data without authorization

blackerz.Authorize(V1_AUTH, DeveloperID?)
authorize your access, can be used to construct bot class

new blackerz.bot(BOT_ID)
return object class to to something with bot

Website

Get your V1 auth by login to our website then visit your profile, here the link
https://blackerz.herokuapp.com/


Developed by Offical Blackerz, join our [discord server](https://discord.gg/k8mW3DPJpH) for more information.