New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dbi.js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbi.js

A wrapper for Discord Bot Index's API

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

dbi.js


Discord server NPM version Patreon

npm installnfo

Information

dbi.js is an API wrapper for Discord Bot Index using Node.JS to make it easier to use it's API.

Installation

Requirements

  • Node.JS >= 8.0.0
  • Yarn (optional) better performance

Run yarn add dbi.js or npm i dbi.js to install, examples are below

Example usage

Posting your bot's guilds
const { Client: dbiClient } = require('../');                                               // Declaring dbi.js
const Client = new dbiClient('< Your DBI Token Here >', { id: '< Your Bot\'s ID Here >' }); // Creating your DBI client
Client.postStats(11).then(console.log);                                                     // Posting your guild count to DBI and logging all results

More examples can be found inside of the /examples directory

Keywords

discord

FAQs

Package last updated on 10 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts