1.0.0 • Published 5 years ago

ddblapi.js v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

ddblAPI.js

npm installinfo Discord Codacy Badge Vulnerabilities Badge npm version npm downloads

Here's the official module of Divine Discord Bot List API in JavaScript.

Installation:

Using npm

npm i ddblapi.js

Using yarn

yarn add ddblapi.js

Methods:

  • .postStats()
  • .getStats()
  • .getVotes()
  • .hasVoted24()

Examples:

Methods usage:

const { ddblAPI } = require('ddblapi.js');
const ddbl = new ddblAPI('BOT_ID', 'API_KEY');
  • .postStats()
ddbl.postStats('SERVER_COUNT')
    .then(console.log);
  • .getStats()
ddbl.getStats('BOT_ID')
    .then(console.log);
  • .getVotes()
ddbl.getVotes()
    .then(console.log);
  • .hasVoted24()
ddbl.hasVoted24('USER_ID')
    .then(console.log);

Webhooks usage:

const { ddblWebhook } = require('ddblapi.js');
const ddbl = new ddblWebhook('PORT', 'AUTH', 'PATH');

ddbl.on('ready', (hook) => {
    console.log(hook);
});

ddbl.on('vote', (vote) => {
   console.log(vote);
});
1.0.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago