astrabots.js
v1.0.8
Published
A official www.astrabots.xyz api that you can get your latest information on the website!
Downloads
14
Maintainers
Readme
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i astrabots.js
Installation
- You should begin by downloading the node module using our terminal.
npm i astrabots.js
- If you do not yet have a bot on our website, please do so: Click Here
- After adding your bot, go to your profile or https://astrabots.xyz/bot/YOUR-BOT-ID and click the Copy token button. It may look like this:
- When you copy it, add it here
const dbl = new astrabots("WEBSITE-TOKEN-HERE", client);
by replacing the "WEBSITE-TOKEN-HERE" - You are ready to go!
Requirments
const astrabots = require("astrabots.js");
const dbl = new astrabots("WEBSITE-TOKEN-HERE", client);
client.on("ready", async () => {
dbl.serverCount();
console.log("Server count posted")
// Get more details:
let search = await dbl.search("YOUR-BOT-ID")
console.log(stats);
});
Returning of dbl stats:
avatar, botID, username, serverCount, discrim, shortDesc, prefix, serverCount, votes, ownerID, owner, inviteURL, coowners, tags,longDesc, github, support, website,