0.1.7-beta • Published 2 years ago

dbsl v0.1.7-beta

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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
    }
*/
});