dbsl

0.1.7-beta • Public • Published

dbsl The Official dbsl.site API

npm version npm downloads

npm banner

Installation

npm :

npm install dbsl

yarn :

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

Package Sidebar

Install

npm i dbsl

Weekly Downloads

1

Version

0.1.7-beta

License

ISC

Unpacked Size

25.6 kB

Total Files

9

Last publish

Collaborators

  • andm-19