Socket
Book a DemoInstallSign in
Socket

discord-easy-m1

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-easy-m1

Wrapper for Prismalytics, interfacing with discord.js

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
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 18 Dec 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.