dblstatistics.js
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

dblstatistics.js

An official module for interacting with dblstatistics.com API

Installation

npm i dblstatistics.js

Usage

const DBLStats = require('dblstatistics.js')

const dbl = new DBLStats('Your token')

// e.g
await dbl.getBot('id') // bot info

Methods

Returns information on a given bot

dbl.getBot(id)

id = ID of the bot

dbl.getBotHistory(id, limit)

Returns the historical data separated by hour

id = ID of the bot

limit = Amount of data to fetch

dbl.getTop(by, limit)

Fetches leaderboard for given list

by = Which list to fetch, options = servers, votes, monthly votes, shards

limit = Amount of data to fetch

dbl.getUsersBots(id)

Gives .user as user object and .bots is a list of bots the user owns

id = ID of the user

dbl.getTags()

Returns a list of tags .server is those for servers, and .bot is those for bots

Readme

Keywords

Package Sidebar

Install

npm i dblstatistics.js

Weekly Downloads

1

Version

2.0.2

License

ISC

Unpacked Size

10.5 kB

Total Files

7

Last publish

Collaborators

  • jpbberry