1.0.2 • Published 2 years ago

icxbots v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

NPM: npmjs.com/package/icxbots

Installation

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

  • npm i icxbots

1. Where can I get Icxbots.ml api?

Ans: JavaScript

2. How do I install it?

Ans: JavaSciprt: npm i icxbots or npm install icxbots Python: soon python will be published

3. What is it's uses?

Ans: To get the daily vote count, server count and information about your bot. Examples: avatar, botID, discriminator, shortDescription, prefix, votes, serverCount, ownerID, owner, co-owners, tags, longDescription, certificate etc.

4. How can I get my bot's server count?

Ans: JavaScript:

const icxbots = require("icxbots");
const dbl = new icxbots("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.serverCount();
  console.log("Server count posted")

5. How can I get my bot's vote count?

Ans:

let hasVote = await dbl.hasVoted("Your-bot-id");
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }
  
  
  let search = await dbl.search("Your-bot-id")
  console.log(search)

6. Full Example?

Ans:

const icxbots = require("icxbots");
const dbl = new icxbots("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.serverCount();
  console.log("Server count posted")
  
  let hasVote = await dbl.hasVoted("your-bot-id");
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }
  
  
  let search = await dbl.search("Your-bot-id")
  console.log(search)

  /* SearchResults
  {
    avatar: '',
    botID: '',
    username: '',
    discrim: '',
    shortDesc: '',
    prefix: '? [changable]',
    votes: 25,
    ownerID: '',
    owner: '',
    coowners: [ '' ],
    tags: [ 'Moderation', 'NSFW', 'Music' ],
    longDesc: longDesc,
    certificate: 'Certified'
  }
  */
});

Questions?

Come talk to us here:

Icxbots.ml

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago