0.0.3-alpha • Published 3 years ago

kcapi.js v0.0.3-alpha

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

klouapi.js

Support: https://kloucord.gq/dc NPM: npmjs.com/package/klouapi.js

Installation

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

  • npm i klouapi.js
const klou = require("klouapi.js");
const dbl = new klou("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.serverCount();
  // console.log("Server count posted")
  
  let hasVote = await dbl.hasVoted("711763299913433165");
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }
  
  
  let search = await dbl.search("711763299913433165")
  console.log(search)
  /*
  {
    avatar: 'https://cdn.discordapp.com/avatars/711763299913433165/8cf145d2189d76cc110101b7a69c6b20.webp',
    botID: '711763299913433165',
    username: 'Yuzo',
    discrim: '8382',
    shortDesc: '¡Gestionando más de 100 servidores con más de 60 mil usuarios en Discord!',
    prefix: '%',
    votes: 6,
    ownerID: '423188993249771521',
    owner: 'JainaGam3r45 ©',
    coowners: [ 'Jimbolo' ],
    tags: [ 'Moderation', 'Fun', 'Config' ],
    longDesc: longDesc,
    certificate: 'Certified'
  }
  */
});