1.0.3 • Published 10 months ago
dbl-azury v1.0.3
Installation
If you have trouble with the installation, please feel free to visit our discord.
npm i dbl-azury
How can I get my bot's server count?
Ans: JavaScript:
const azury = require("dbl-azury");
const dbl = new azury("TOKEN-HERE", client);
client.on("ready", async () => {
dbl.serverCount();
console.log("Server count posted")
How can I get my bot's vote count?
Ans:
let hasVote = await dbl.hasVoted("Your-bot-id");
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
let search = await dbl.search("Your-bot-id")
console.log(search)
Entire Example Usage
Ans:
const azury = require("dbl-azury");
const dbl = new azury("TOKEN-HERE", client);
client.on("ready", async () => {
dbl.serverCount();
console.log("Server count posted")
let hasVote = await dbl.hasVoted("your-bot-id");
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
let search = await dbl.search("Your-bot-id")
console.log(search)
/* SearchResults
{
avatar: '',
botID: '',
username: '',
discrim: '',
shortDesc: '',
prefix: '? [changable]',
votes: 25,
ownerID: '',
owner: '',
coowners: [ '' ],
tags: [ 'Moderation', 'NSFW', 'Music' ],
longDesc: longDesc,
certificate: 'Certified'
}
*/
});