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 🙏

© 2024 – Pkg Stats / Ryan Hefner

discommand-save

v1.0.6

Published

Create commands easy and save space

Downloads

3

Readme

Discommand-Save

Designed for Discord.js, for all developers.

¡Crea tus comandos desde un canal en un servidor de discord, modificalos, usalos!

Create your commands from a channel on a discord server, modify them, use them!

Setup Video | Click to see

https://www.youtube.com/watch?v=gO1K-z-lXU8&feature=youtu.be

Read :: Normal

The npm use msg not message, if you have message.channel.send("Example") change to msg.channel.send("Example"), this, with all use message

The npm dont accept events, if you use <client>.on you will get a VERY and SUPER BIG error :).

If you have an error, the command says the error, LOL

Description :: Descripción

  • Discommand es fácil de usar, no ocupa espacio y hará que tus comandos sean fáciles, podrás inventarte miles de formas de hacer comandos ¡Sin entrar a tu espacio de trabajo! o ahorrandote espacio.

  • Discommand is easy, open your mind imagine everything you can do.

Installation :: Instalación

Install the npm with

npm i discommand-save

Primer Paso // First Step

const discommand  = require('discommand-save');

Spanish Setup

Spain Una vez terminado el primer paso, usaremos el siguiente ejemplo para crear un comando.

const Token = "TOKEN DE TU BOT";
discommand.commandSaver(prefix, nombreComando, idCanal, idMensajeScript, Token);

En token introduciremos el token de tu bot, puedes ponerlo en forma de String o mediante una Variable

En prefix introduciremos el prefijo del comando, ejemplo !

En nombreComando introduciremos el nombre del comando, ejemplo test

En idCanal introduciremos la id del Canal donde este el mensaje del Script del comando, ejemplo 767000931745005618

En idMensajeScript introduciremos la id del Mensaje del Script del comando, ejemplo 767041413002297374

Debería quedar algo así.

const Token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6I";
discommand.commandSaver('!', 'test', '767000931745005618', '767041413002297374', Token);

Para ejecutar tu comando útiliza el prefijo + Nombre del comando, !test No soporta EVENTOS, solo comandos, no hace falta poner <client>.on, con esto ya funcionaria: msg.channel.send("¡Descargalo!")

English Setup

English USA After the first step is finished, we will use the following example to create a command.

const Token = "TOKEN OF YOUR BOT";
discommand.commandSaver(prefix, commandName, idChannel, idMessageScript, Token);

In token enter the token of your bot, you can use String or Variable

In prefix enter the command prefix, example !

In commandName enter the name of the comand, example test

In idChannel introduce the id of the Channel where the command Script message, example 767000931745005618

In idMensajeScript introduce the id of the Script Message of the command, example 767041413002297374

It should look something like this.

const Token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6I";
discommand.commandSaver('!', 'test', '767000931745005618', '767041413002297374', Token);

DONT SUPPOR EVENTS, only commands, DONT use <client>.on, USE this example to make, code: msg.channel.send("Download!")

Possible Errors

Por limitaciones de Discord, puede que dentro de 14 días tu comando obtenga un error, esto no es culpa tuya ni del NPM, si esto pasa, simplemente reselecciona la ID del comando, algunas cosas para que no pasen esto es usar una base de datos.

Due to Discord limitations, may that within 14 days your command have an error, this is not your fault or the NPM, if this happens, simply reselect the ID of the command, some things so that this does not happen is to use a database.

Support

Support Server :: https://discord.gg/CjZWhve

Discord :: https://discord.bio/p/nayra

GitHub :: https://github.com/xNayra