JSPM

gcommands

4.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q70547F
  • License MIT

Open-source slash/normal command handler

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

NPM version NPM downloads

NPM Banner


📂 | Installation

npm install gcommands
yarn install gcommands

npm install github:Garlic-Team/GCommands#dev #dev build

If you're updating from 3.x to 4.x, check https://gcommands.js.org/guide/additional/fromv3tov4.html

📜 | Setup

const { Client } = require("discord.js")
const { GCommands } = require("gcommands")
const client = Client();

client.on("ready", () => {
    const gc = new GCommands(client, {
        cmdDir: "commands/",
        eventDir: "events/",
        language: "english",
        unkownCommandMessage: false,
        slash: {
            slash: "both",
            prefix: "."
        },
        database: {/*read guide*/}
    })

    gc.on("debug", (debug)=>{console.log(debug)})
})

client.login("token")

✍ | Examples

You can find everything in the guide.
Join our discord server, if you need help or have any questions.

👥 | Contact