starbots-api.js

0.0.1 • Public • Published

starbots-api.js

Join our discord
Support: https://starbots.ml/dc
NPM: npmjs.com/package/starbots-api.js

Installation

If you have trouble with the installation, please feel free to visit our discord address.

  • npm i starbots-api.js
const star = require("starbots-api.js");
const dbl = new star("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.serverCount();
  // console.log("Server count posted")
  
  let hasVote = await dbl.hasVoted("User ID"); // User ID
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }
  
  
  let search = await dbl.search("Client ID") //Client ID
  console.log(search)
  /*
  {
    avatar: 'Avatar Link of Bots',
    botID: 'Client ID',
    username: 'Username of Bots',
    discrim: 'Discrim of Bots',
    shortDesc: 'Short Description',
    prefix: 'Prefix Bots',
    votes: 0,
    ownerID: 'Owner ID',
    owner: 'Ploritto',
    coowners: [ '' ],
    tags: [ 'Moderation', 'NSFW', 'Music' ],
    longDesc: longDesc,
    certificate: 'Certified'
  }
  */
});

Package Sidebar

Install

npm i starbots-api.js

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

10 kB

Total Files

4

Last publish

Collaborators

  • plorittod