Support: https://myDbots.ml/discord
NPM: npmjs.com/package/mybots-api.js
If you have trouble with the installation, please feel free to visit our discord.
npm i mybots-api.js
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");
client.on("ready", async () => {
dbl.serverCount();
/*
-> Server count posted.
or
-> Server count & shard count posted.
*/
});
let hasVote = await dbl.hasVoted("485716273901338634"); // -> User ID
if (hasVote === true) {
console.log("Voted");
} else {
console.log("Vote please.");
}
// -> Vote please.
let botFind = await dbl.search("742738378445029387");
console.log(botFind.username); // -> EcoBot