🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

nyxr

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nyxr

BLAPI is a package to handle posting your discord stats to botlists. It's intended to be used with discord.js, though you can also manually post your stats.

1.2.3
latest
npm
Version published
Maintainers
1
Created
Source

nyxr

An official module for interacting with the discordbots.site API

Installation

npm install nyxr

NOTE:

  • The api is still WIP (work in progress).

Example of posting server count with supported libraries (Discord.js and Eris)

const Discord = require("discord.js");
const client = new Discord.Client();
const DBS = require("nyxr");
const dbs = new DBS('Your discordbots.site token', client);	
//Optional events
dbs.on('posted', () => {
  console.log('Server count posted!');
})

dbs.on('error', e => {
 console.log(`Oops! ${e}`);
})

Keywords

discord

FAQs

Package last updated on 25 Jan 2020

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