JSPM

fcommands

4.3.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q23331F
  • License MIT

Pacote para ajudar você a criar seu bot discord

Package Exports

  • fcommands

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 (fcommands) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

FCommands

NPM version NPM downloads

NPM Banner


📂 | Installation

npm install fcommands
yarn install fcommands

npm install github:GAARA041/FCommands#dev #dev build

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

📜 | Setup

const { Client } = require("discord.js")
const { FCommands } = require("fcommands")
const client = Client();

client.on("ready", () => {
    const fc = new FCommands(client, {
        cmdDir: "commands/",
        eventDir: "events/",
        language: "pt",
        unkownCommandMessage: false,
        slash: {
            slash: "both",
            prefix: "."
        },
        database: "url"
        /* DB SUPPORT
         * redis://user:pass@localhost:6379
         * mongodb://user:pass@localhost:27017/dbname
         * sqlite://path/to/database.sqlite
         * postgresql://user:pass@localhost:5432/dbname
         * mysql://user:pass@localhost:3306/dbname
        */
    })

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

client.login("bot token")

✍ | Examples

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

👥 | Contact