catcommands
v8.1.1
Published
Cat Discord Command Builder
Downloads
43
Readme
Cat Commands
A simple and easy-to-use Command Handler for discord.js
Installation
catcommands can be installed using one of the following commands:
NPM
npm i catcommands
Examples
Here's how to write a basic command in catcommands
// index.js
const CatCommands = require('catcommands')
const { Client } = require('discord.js')
const commandsFolder = __dirname + "\\commands"
// Do your normal Discord.js stuff...
// Creating a CatCommands instance
CatCommands.Setup(commandsFolder, Client)
// hello.js
module.exports = {
async execute(interaction, client) {
interaction.reply("Hello!")
},
cmddata: new SlashCommandBuilder()
.setName("hello")
.setDescription("says hello")
}