1.0.0 • Published 4 years ago
bhbotlist v1.0.0
*NPM:** npmjs.com/package/bhbotlist
Installation
If you have trouble with the installation, please feel free to visit our discord us.
npm i bhbotlist
const bhbot = require("bhbotlist");
const dbl = new bhbot("TOKEN-HERE", client);
client.on("ready", async () => {
dbl.serverCount();
console.log("Server count posted")
let hasVote = await dbl.hasVoted("845357509132550184");
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
let search = await dbl.search("845357509132550184")
console.log(search)
/*
{
avatar: '',
botID: '',
username: '',
discrim: '',
shortDesc: '',
prefix: '! [changable]',
votes: 31,
ownerID: '',
owner: '',
coowners: [ '' ],
tags: [ 'Moderation', 'NSFW', 'Music' ],
longDesc: longDesc,
certificate: 'Certified'
}
*/
});
1.0.0
4 years ago