2.0.0 • Published 4 years ago

dbrapi v2.0.0

Weekly downloads
11
License
GPL-3.0
Repository
github
Last release
4 years ago

npm installinfo Codacy Badge npm version npm downloads Developer Of This Module

Here's the Official module of Capehost | DiscordBotReviews Bot List API in JavaScript.

Installation

Using npm

npm i dbrapi

Using yarn

yarn add dbrapi

Methods

  • .postStats()
  • .getWidget()

Examples

Methods usage:

const DBRAPI = require('dbrapi');
const dbr = new DBRAPI('BOT_ID','API_KEY');
  • .postStats()
dbr.postStats('SERVER_COUNT')
    .then(console.log);
  • .getWidget()
dbr.getWidget('BOT_ID')
    .then(console.log);

Basic Example

/*
 * name BotListAPI (DBRAPI)
 * author ᴮᵉᵗᵗᵉʳ ᴼᶠᶠ ᴳᵒⁿᵉ#0869
 * version 1.1.6
 * description: Custom BotListAPI For Capehost | DBR
 * information: This is an example usage.
 */
const DBR = require('dbrapi');
module.exports = (client) => {
    const dbr = new DBR(client.user.id, client.botlist.dbr.token);
    dbr.postStats(client.guilds.size).then(() => {
        console.log();
    }).catch((err) => {
        console.log();
    });
};
2.0.0

4 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago