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

adb-plugin-custom-commands

v1.0.0

Published

One-line description of what this plugin does.

Readme

adb-plugin-custom-commands

Custom Commands plugin for Advanced Discord Bot (ADB).

Features

  • Four Command Types:
    • slash: Discord application slash commands (e.g. /name) registered dynamically on a per-guild basis.
    • text: Traditional chat commands parsed using a configurable/default prefix (e.g. !name).
    • user: Discord user context menu commands (Apps -> name).
    • message: Discord message context menu commands (Apps -> name).
  • Embed Responses: Opt-in to reply using high-quality Discord embeds or standard text.
  • Dynamic Variables:
    • {user}: Mentions the user executing the command (e.g. <@userId>).
    • {server}: The server/guild name.
    • {timestamp}: A dynamically rendered Discord timestamp (e.g. <t:unix_time:f>).
    • {args:all}: Joins all provided arguments into a single space-separated string.
    • {args:N}: Resolves positional parameters:
      • Slash & Text Commands: The N-th space-separated word of arguments (1-indexed).
      • User Context Menu Commands:
        • {args:1}: Target user mention
        • {args:2}: Target username
        • {args:3}: Target user ID
      • Message Context Menu Commands:
        • {args:1}: Target message author mention
        • {args:2}: Target message text content
        • {args:3}: Target message ID
        • {args:4}: Target message author username

Management Commands

Use the /customcommand command group to manage your custom commands:

  • /customcommand create [name] [type] [response] [embed] [description] — Create a new command.
  • /customcommand edit [name] [response] [embed] [description] — Edit matching commands.
  • /customcommand delete [name] — Delete matching commands (cleans up from Discord API).
  • /customcommand list — List all registered custom commands for this server.
  • /customcommand show [name] — Show configuration details for matching commands.

Installation & Setup

  1. Copy or symlink this directory into the plugins/ directory of your Advanced Discord Bot folder:
    ln -s $(pwd) /path/to/Advanced-Discord-Bot/plugins/adb-plugin-custom-commands
  2. Run npm install in the plugin directory to restore dependencies.
  3. Start/Restart the bot. Since this plugin adds slash commands, you must run the deployment command in the main bot repo to register the control commands with Discord:
    node deploy-commands.js

Local Testing (No Discord connection/Mongo required)

Verify everything works by executing:

npm install
npm test

This runs the comprehensive local test suite in test/local-harness.js using test/mock-ctx.js to ensure variables, creation, listing, execution, editing, and deletion work flawlessly.

License

This project is licensed under the GNU Affero General Public License v3.0.