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

robotcord

v1.5.4

Published

botcord - alphadiscor - final version release

Readme

RobotCord

Robotcord is the updated version of Botcord and AlphaDiscor - is a library to make the development of bots more easy with discord.js ⠀ ⠀


Important 📢

This library is the updated version (djs 13) of https://www.npmjs.com/package/botcord ⠀ ⠀


Import - and use your type of profile 📚


 // Example for use regular bot

 require("robotcord").start("TOKEN").regularify()

 // (mongosify() "for mongo db", replitify() "for replit workers")

⠀ ⠀


Create modules 🎻

You will need to create certain folders for "modules" - modules is the form that robotcord works - basically create the following folders : ("commands", "events", "data") ⠀ ⠀


Commands folder 📗

There is no command per file - there is group of commands per file - where you can export an array of commands data - all commands are slash commands

Every command is representated within an object with the following propertys ⠀


name: <string> / <required> ,

execution: <function> / <required>,

cd: <number> / <optional>,

paremeters: <array {
    
            type: <("member", "string", "channel", "role", "number")> / <required>,

            name: <string> / <required>,

            description: <string> / <optional>

            }> / <optional>,

permissions: <array (permission flag names)> / <optional>,

description: <string> / <optional>,

nsfw: <boolean> / <optional>

The execution function will be given with 2 parameters - response that is a the command interaction data and self that is the data given by robotcord ⠀


 module.exports = [

    {

        name: "ping",

        execution: (response) => response.reply({content: "pong"})

    },

    {

        name: "say",

        paremeters: [{name: "words", type: "string", description: "words to say", required: true}],

        execution: (response) => response.reply({content: response.options.get("words") || "nothing"})

    }

 ]

⠀ ⠀


Events folder 📘

As another normal handlers - you create a file per event with the following data ⠀


type: <string (name of the event)> / <required>,

execution: <function> / <required>

⠀ The execution function will be given with (n) parameters - representating the default djs event parameters + (another robotcord data like functions / tables and more) ⠀


module.exports = {

    type: "messageCreate",

    execution: (message, secondParameter, self) => {

        // self is the robotcord data - secondParamter is the second parameter if there is one

        message.channel.send({content: "message handled"})

    }

}

⠀ ⠀


Data folder 📙

Data folder is a especific place to put your robotcord data and is optional - you can create your handler file or embeds file in another place (however is recommended to save this files on an especific folder) ⠀ ⠀


Example of use 💻

Example index 🎮 ( index.js ) ⠀ ⠀


require("robotcord").start("TOKEN")
.handler("./data/handler")
.regularify()

⠀ ⠀ Example module 👾 ( commands/random.js ) ⠀ ⠀

module.exports = [

    {

        name: "ping",

        cd: 5,

        execution: (response) => response.reply({content: "pong"})
        
    }

]

⠀ ⠀ Example handler 🩹 ( data/handler.js ) ⠀ ⠀


module.exports = {

    onCD(response, cd) => response.reply({content: "you are in a cd of " + cd})

}

⠀ ⠀


Deployement 📦

Only execute the principal file and all will be done - also you can configure the enviroment in the options or whit robotcord (base) methods like mongosify() ⠀ ⠀