1.0.6 • Published 4 years ago

discommand-save v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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

npm.io

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

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago