Package Exports
- gcommands
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gcommands) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
G Commands
Installation
npm install gcommandsDEV build
npm install github:Garlic-Team/GCommands#devIf you updating from 2.x to 3.x check https://gcommands.js.org/guide/additional/fromv2tov3.html
Support
How to use?
index.js
const { GCommands } = require("gcommands");
const Discord = require("discord.js");
const client = new Discord.Client();
client.on("ready", () => {
const GCommandsClient = new GCommands(client, {
cmdDir: "commands",
eventDir: "events", //when you want event handler
language: "czech", //english, spanish, portuguese, russian, german, czech, slovak,
unkownCommandMessage: true, //send unkown command message true/false
slash: {
slash: 'both', //true = slash only, false = only normal, both = slash and normal
prefix: '.'
},
defaultCooldown: 3,
database: {
type: "mongodb", //sqlite/mongodb
url: "mongodb+srv://" //mongourl
}
})
GCommandsClient.on('debug', (debug) => {console.log(debug)});
})
client.login("token")