1.0.0 • Published 2 years ago
gamerbotlist.js v1.0.0
Installation
npm i gamerbotlist.js
const astrabots = require("gamerbotlist.js");
const dbl = new astrabots("TOKEN-HERE", client);
client.on("ready", async () => {
dbl.serverCount();
// console.log("Server count posted")
let hasVote = await dbl.hasVoted("REPLACE-WITH-BOT-ID");
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
let search = await dbl.search("REPLACE-WITH-BOT-ID")
console.log(search)
});
1.0.0
2 years ago