Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.
/ Hardcord.js Public archive

[ALPHA] A command framework for Discord.js users.

License

Notifications You must be signed in to change notification settings

InkoHX/Hardcord.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

[ALPHA] A command framework for Discord.js users.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published