mybots-api.js

1.0.1 • Public • Published

myDbots.js

Join our discord
Support: https://myDbots.ml/discord
NPM: npmjs.com/package/mybots-api.js

Installation

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

  • npm i mybots-api.js

Define Module & Client

const Discord = require("discord.js");
const client = new Discord.Client();
const myDbots = require("mybots-api.js");
const dbl = new myDbots("myDbots Token", client);

client.login("Discord Bot Token");

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("485716273901338634"); // -> User ID
if (hasVote === true) {
  console.log("Voted");
} else {
  console.log("Vote please.");
}
// -> Vote please.

Search on vCodes

let botFind = await dbl.search("742738378445029387");
console.log(botFind.username); // -> EcoBot

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i mybots-api.js

    Weekly Downloads

    1

    Version

    1.0.1

    License

    CC0-1.0

    Unpacked Size

    3.05 kB

    Total Files

    3

    Last publish

    Collaborators

    • mydbots