dumb-botlistjs

2.0.3 • Public • Published

Dumb Bot API v2.0.3

A package to interact Dumb Bot List API.

NPM version NPM downloads

npm installnfo

Installation

To install this package please run npm install dumb-botlistjs

Usage

const botlist = require("dumb-botlistjs");
const dbl = new botlist("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.serverCount();
  // console.log("Server count posted")
  let hasVote = await dbl.hasVoted("714451348212678658");
  if(hasVote === true) {
    console.log("Voted");
  } else {
    console.log("Vote please.");
  }
  
  
  let search = await dbl.search("779641401482805289");
  console.log(search);
  /*
  { RESULTS :
    avatar: 'https/cdn.discordapp.com/avatars/807855659173150781/f360c03f3ba6705c4d994b4edb19a634.webp?width=100&height=100',
    botID: '828959241586606110',
    username: 'Dhvit',
    discrim: '4006',
    shortDesc: 'An op bot',
    prefix: '.,
    votes: 20,
    ownerID: '720632216236851260',
    owner: 'DhvitisOP',
    coowners: [ '' ],
    tags: [ 'Moderation', 'Reddit', 'Music' ],
    longDesc: "An Another OP bot",
    certificate: 'not Certified'
  }
  */
});```

Package Sidebar

Install

npm i dumb-botlistjs

Weekly Downloads

2

Version

2.0.3

License

MIT

Unpacked Size

4.21 kB

Total Files

4

Last publish

Collaborators

  • riderthedev