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

prismajs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prismajs

Wrapper for Prismalytics, interfacing with discord.js

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

PrismaJS

Wrapper for Prismalytics, interfacing with discord.js

Setup

Install prismalytics with npm:

npm install prismajs

  • Create an account / login at https://prismalytics.herokuapp.com and register a new bot.

  • Copy its token

  • Initialize the connection with our library like this:

const Prismalytics = require("prismajs");
analytics = new Prismalytics("<Prismalytics Token>");
  • Call analytics.send(message) whenever your bot registers a command. For example:
bot.on("message", (message) => {
  if (message.content.startsWith("<BOT PREFIX HERE>")) {
    analytics.send(message);
  }
})

This will send the data to our API through the library and you'll have a beautiful dashboard like this:

demo

Keywords

prismalytics

FAQs

Package last updated on 17 Aug 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