https://github.com/fastering18/blackerz-sdk-js
A developer kit for interacting with our API, written in JavaScript.
https://github.com/fastering18/blackerz-sdk-js
api-wrapper discord-bot javascript nodejs npm sdk
Last synced: 3 months ago
JSON representation
A developer kit for interacting with our API, written in JavaScript.
- Host: GitHub
- URL: https://github.com/fastering18/blackerz-sdk-js
- Owner: Fastering18
- License: apache-2.0
- Created: 2021-01-22T15:02:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-12T08:34:28.000Z (almost 5 years ago)
- Last Synced: 2025-10-19T10:42:45.913Z (9 months ago)
- Topics: api-wrapper, discord-bot, javascript, nodejs, npm, sdk
- Language: JavaScript
- Homepage: https://blackerz.herokuapp.com
- Size: 68.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blackerz-SDK 
A developer kit for interact with our API.
> Added type definition and more edit data.
__Example node Post Bot Description__
```js
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.