# mh_command_handler

> A command handler discord.js, which handles categories.

Latest version **1.0.0** (published 2019-11-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install mh_command_handler
pnpm add mh_command_handler
yarn add mh_command_handler
bun add mh_command_handler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-11-26 |
| First published | 2019-11-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jacques |
| Maintainers | magic_hitler |
| Keywords | discord, bot, command_handler, mhdiscord |

## Links

- npm: https://www.npmjs.com/package/mh_command_handler
- npm.io page: https://npm.io/package/mh_command_handler

## Dependencies (1)

- [discord.js](https://npm.io/package/discord.js.md) ^11.5.1

## Recent versions

- 1.0.0 (latest) — 2019-11-26

## README

# MH Discord command categories handler

This command handler uses Discord.js, and supports categories of commands.
It isn't finished yet, so you can contribute as you want.

## Summary

- [1) Usage](#1-usage)
	- [Configuration](#configuration)
	- [Creating commands](#creating-commands)
	- [Creating categories](#creating-categories)
    - [Updating the help command](#updating-the-help-command)

## 1) Usage

### Configuration

"./config.json", you should understand it easily

### Creating commands

Just create a file "name_of_your_command.js" in the "./commands" directory.
Then to configure it, type
```JavaScript
module.exports.run = async (client, args, message) => {
    // In this block, the behavior of your command.
};

module.exports.conf = {
    elevation: 0 // for everyone, 10 for only you. You can configure more elevations in the "./structures/elevationManager.js" file.
}
```

### Creating categories

Same, but put your files in a subdirectory in "./commands".

### Updating the help command

When you create a category, you have to modify the "./commands/help.js" file.
In the switch function line 21, just add the name of your category, and the corresponding emoji, following the examples.

---
_Source: https://npm.io/package/mh_command_handler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
