dbsl
v0.1.7-beta
Published
Official dbsl.site API
Downloads
9
Maintainers
Readme
Installation
npm install dbsl
yarn add dbsl
Pages Setup :
const DBSL = require("dbsl");
const client = new Client(); // - - discord.js v12 or v13 - -
new DBSL.AutoPoster({client : client , token : "dbslToken"}).start(() => {
console.log("[DBSL] Successfully"); // - - Automatically checkes every (2) minute - -
});
let dbsl = new DBSL.Vote({url: "Domain Url", token: "dbslToken", port: 8080}).start(() => {
console.log("[DBSL] Successfully started votes");
});
dbsl.on("vote" , (vote) => {
console.log(vote); /* OUTPUT:
{
id: "123456789012345678", <-- USER ID
votes : AllVotesCounts
}
*/
});