starbots-api.js
v0.0.1
Published
A official starbots.ml api.
Downloads
3
Maintainers
Readme
starbots-api.js
Support: https://starbots.ml/dc NPM: npmjs.com/package/starbots-api.js
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i starbots-api.js
const star = require("starbots-api.js");
const dbl = new star("TOKEN-HERE", client);
client.on("ready", async () => {
dbl.serverCount();
// console.log("Server count posted")
let hasVote = await dbl.hasVoted("User ID"); // User ID
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
let search = await dbl.search("Client ID") //Client ID
console.log(search)
/*
{
avatar: 'Avatar Link of Bots',
botID: 'Client ID',
username: 'Username of Bots',
discrim: 'Discrim of Bots',
shortDesc: 'Short Description',
prefix: 'Prefix Bots',
votes: 0,
ownerID: 'Owner ID',
owner: 'Ploritto',
coowners: [ '' ],
tags: [ 'Moderation', 'NSFW', 'Music' ],
longDesc: longDesc,
certificate: 'Certified'
}
*/
});