bybots.js

1.0.7 • Public • Published

bybots.js

Join our discord
Support: https://www.bybots.cf/dc
NPM: npmjs.com/package/bybots.js

Installation

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

  • npm i bybots.js

Define Module & Client

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

client.login("MTk4NjIyNDgzNDcxOTI1MjQ4.Cl2FMQ.ZnCjm1XVW7vRze4b7Cq4se7kKWs");

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

Search on ByBots

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

Package Sidebar

Install

npm i bybots.js

Weekly Downloads

9

Version

1.0.7

License

CC0 1.0

Unpacked Size

10.3 kB

Total Files

4

Last publish

Collaborators

  • byemre