1.0.8 • Published 2 years ago
astrabots.js v1.0.8
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,
1.0.2
2 years ago
1.1.1
2 years ago
1.0.1
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.2.5
2 years ago
1.0.6
2 years ago
1.2.4
2 years ago
1.0.5
2 years ago
1.2.3
2 years ago
1.0.4
2 years ago
1.2.2
2 years ago
1.0.3
2 years ago
1.1.2
2 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.0.1-alpha
3 years ago