bybots.js
v1.0.7
Published
A official bybots api.
Downloads
13
Maintainers
Readme
bybots.js
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