clowbotlist.js
v1.0.0
Published
A official clowbotlist.ga api.
Downloads
3
Maintainers
Readme
clowbotlist.js
Support: https://clow.ga/dc NPM: npmjs.com/package/clowbotlist.js
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i clowbotlist.js
Define Module & Client
const Discord = require("discord.js");
const client = new Discord.Client();
const clowbotlist = require("clowbotlist.js");
const dbl = new clowbotlist("TOKEN-HERE", client);
//Your Bot Token from clowbotlist
client.login("BotToken");
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("userid"); // -> User ID
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
// -> Vote please.
Search on clowbotlist
let botFind = await dbl.search("userid");
console.log(botFind.username) // -> Allegro