cordlist-tk

1.0.2 • Public • Published

NPM: npmjs.com/package/cordlist-tk

npm installnfo

Installation

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

  • npm i cordlist-tk

1. Where can I get cordlist.tk API?

JavaScript Package

2. How do I install it?

npm i cordlist-tk

4. 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.

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

JavaScript:

const dtl = require("cordlist-tk");
const dbl = new dtl("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.serverCount();
});

6. 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)

7. Full Example?

const dtl = require("cordlist-tk");
const dbl = new dtl("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("cordlist-tk")
  console.log(search)

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

Readme

Keywords

none

Package Sidebar

Install

npm i cordlist-tk

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.2 kB

Total Files

3

Last publish

Collaborators

  • kanus