New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dblposter

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dblposter

A simple to use poster for DiscordBotList

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

NPM version NPM downloads Dependencies

NPM info

DBLPoster

A simple to use poster for DiscordBotList stats.

How to use

const dbl = require("dblposter");

const dblPoster = new dbl(`API KEY GOES HERE`);

// Then, whatever your client is (Discordie, Discord.JS, Eris or Discord.io)
dblPoster.bind(client);

That will bind the poster to your client automatically and handle the stat posting on ready, guild create or delete.

That function also adds the poster to the client, with the default name of dblPoster (accessible using client.dblPoster). That is an instance of EventEmitter, and it can emit 2 events:

  • posted
    • Means the stat posting for the shard was successful
    • Returns nothing
  • error
    • Means there was an error at post.
    • Returns the snekfetch error object.

If for any reason you want to change the name of the newly added property, it's as easy as:

dblPoster.bind(client, "mySpecialVariableName");

FAQs

Package last updated on 30 Dec 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc