astrabotseris.js
v1.2.1
Published
A official astrabots.xyz api that you can get your latest information on the website!
Maintainers
Readme
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i astrabotseris.js
const astrabots = require("astrabots.js");
const dbl = new astrabots("TOKEN-HERE", client);
client.on("ready", async () => {
if(!this.client.guilds.cache && this.client.guilds) this.library = "eris";
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)
});