astrabots.js

1.0.8 • Public • Published

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:
    token
  • 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,

Package Sidebar

Install

npm i astrabots.js

Weekly Downloads

21

Version

1.0.8

License

ISC

Unpacked Size

6.37 kB

Total Files

4

Last publish

Collaborators

  • luckytarget