1.0.2 • Published 3 years ago

dbl.xyz v1.0.2

Weekly downloads
-
License
CC0 1.0
Repository
github
Last release
3 years ago

dbl.xyz

Support: https://discord.gg/invite/Z6YN7jRAKf NPM: npmjs.com/package/dbl.xyz

Installation

  • npm i dbl.xyz

Define Module & Client

const Discord = require("discord.js");
const client = new Discord.Client();
const darkbot = require("dbl.xyz");
const dbl = new darkbot("TOKEN-HERE", client);

client.login("TOKENLA");

Server Count & Shard Count Posting

client.on("ready", async () => {
  dbl.serverCount();
  /* 
  -> Server count posted. 
  or 
  -> Server count & shard count posted.
  */

});

Vote Checking

let hasVote = await dbl.hasVoted("324102546681757716"); // -> User ID
  if(hasVote === true) {
      console.log("Voted")
    } else {
      console.log("Vote please.")
  }
// -> Vote please.

Search on DarkBotList

let botFind = await dbl.search("BOTID");
console.log(botFind.username) // -> Chino~