mybots-api.js
v1.0.1
Published
An official myDbots.ml api
Downloads
4
Maintainers
Readme
myDbots.js
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