fcommands
v4.3.7
Published
Pacote para ajudar você a criar seu bot discord
Downloads
4
Maintainers
Readme
📂 | 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.