A command framework for Discord.js users.
npm install hardcord.js discord.js
yarn add hardcord.js discord.js
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()