npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

discord.js-plugins

v1.0.1

Published

3rd party module for discord.js

Downloads

16

Readme

discord.js-plugins

discord.js-plugins is a 3rd party module for discord.js

| Subject | Description | | :---: | :-: | | Trial | Information about free trial | | Purchasing | How to purchase a product key | | Installation | How to install the module | | Usage| How to do a import the module | | Plugins| Learn how to use a specific plugin | | Examples| Examples of what you can make |

Trial

If you want to try out discord.js-plugins you can use the product key called trial you only get the following plugins tho.. Prompt, Request, Database

Purchasing

To purchase a product key go to shoppy.gg. If there is any problems contact Niiko#0713 on Discord.

Installation

Use the package manager npm to install the module.

npm install discord.js --save
npm install discord.js-plugins --save

Usage

const Discord = require("discord.js");
const client = new Discord.Client();

require("discord.js-plugins")(Discord, client, "PRODUCT_KEY").then(() => {
    // Initialize discord.js bot code..
})

Plugins

| Subject | Description | | :---: | :-: | | Captcha | Make captcha verification | | Database | Easily manage a database | | Request| Make HTTP Web Requests | | ReactMessage| Actions when reacted to message | | Prompt| Question the target and get answer |

Captcha

let captcha = new Discord.Captcha(
    message.author.id, // target id
    (msg) => { msg.channel.send("valid") }, // valid callback
    (msg) => { msg.channel.send("invalid") }, // invalid callback
);

captcha.send(message.channel); // channel where to send message

Database

let database = new Discord.Database("GLOBAL"); // GLOBAL = Synced with all server, guild id = guild

database.get("GROUP"); // gets group value
database.set("GROUP", "VALUE"); // sets group value
database.push("GROUP", "VALUE"); // pushes value (only works if value is an array)
database.remove("GROUP"); // removes a group
database.exist("GROUP"); // checks if a group exists

Request

new Discord.Request("URL", {
    method: "GET"
}).then(response => {
    console.log(response); // response = raw text
});

ReactMessage

let react = new Discord.ReactMessage(
    "Hello there react to this message", // message content, could be an embed
    ["👋", "👊"], // only sends callback if these emojis, null = all emojis
    (msg, reaction, user) => { msg.channel.send("caught you reacting.") } // react callback
);

react.send(message.channel); // channel where to send message

Prompt

let prompt = new Discord.Prompt(
    message.author.id, // target id
    "Is discord.js-plugins cool?" // message content, could be embed
);

prompt.send(message.channel); // channel where to send message

Examples

React to message for role

const Discord = require("discord.js");
const client = new Discord.Client();

require("discord.js-plugins")(Discord, client, "PRODUCT_KEY").then(() => {
    client.on("message", (message) => {
        if (message.content === "role") {
            var react = new Discord.ReactMessage("React to this for verified role", null, (msg, reaction, user) => {
                var role = null;
                var target = null;

                /* Find Role */ msg.guild.roles.cache.filter(r => { if (r.name === 'verified') role = r; });
                /* Find Member */ msg.guild.members.cache.filter(r => { if (r.id === user.id) target = r; });
            
                /* Add role to member */ target.roles.add(role);
            });

            react.send(message.channel); /* Send React message */
        }
    })
})