1.0.1-alpha.1 • Published 4 years ago

hardcord.js v1.0.1-alpha.1

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

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()