dbl.xyz
v1.0.2
Published
A official darkbotlist api.
Downloads
3
Maintainers
Readme
dbl.xyz
Support: https://discord.gg/invite/Z6YN7jRAKf NPM: npmjs.com/package/dbl.xyz
Installation
npm i dbl.xyz
Define Module & Client
const Discord = require("discord.js");
const client = new Discord.Client();
const darkbot = require("dbl.xyz");
const dbl = new darkbot("TOKEN-HERE", client);
client.login("TOKENLA");
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("324102546681757716"); // -> User ID
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
// -> Vote please.
Search on DarkBotList
let botFind = await dbl.search("BOTID");
console.log(botFind.username) // -> Chino~