Hardcord.js
A command framework for Discord.js users.
Install
NPM
npm install hardcord.js discord.js
Yarn
yarn add hardcord.js discord.js
Example
import { Client, CommandBuilder } from 'hardcord.js'
const client = new Client()
client.ignoreMention = true
client.commandPrefix = '>'
client.addCommand('ping', new CommandBuilder()
.boolean('bool') // "--bool" flag
.setCommandHandler(({
message,
flags: {
bool
},
args
}) => {
console.log(bool, args)
// add your code
})
)
client.login()