📄
Advanced-Command-Handler Guide
  • Home
  • Concepts
    • CommandHandler
    • Commands
      • Commands Templates
      • CommandContext
      • SubCommands
    • Events
  • Default Commands & Events
  • Utilities
    • BetterEmbed & Embed Templates
    • Logger
    • Miscellaneous
  • v2 to v3 Migration Guide
  • Discord Support
  • Documentation
  • GitHub
Powered by GitBook
On this page
  • What it is
  • Installation
  • Getting started

Was this helpful?

Home

NextCommandHandler

Last updated 3 years ago

Was this helpful?

What it is

This is a node.js library written in typescript for more than a year that is here to simplify bot creation with automation for commands/events handling, defaults commands/events, plus some utilities classes and functions.

Installation

To install this module, you need with at least version 16.

Then execute this command :

$ npm install --save advanced-command-handler

Add @beta at the end to install the beta version or @rc to install the release candidate version if any.

For the version 3.0.x of the library you will need Discord.js v12, it will be updated to v13 in versions 3.1.x.

Getting started

First, , then get the token of the application.

Install the dependency and create your main JavaScript (or TypeScript) file and write the first lines to setup the bot and the Command Handler and start it.

index.js
const {CommandHandler} = require('advanced-command-handler');

CommandHandler.create({
    commandsDir: 'commands',
    eventsDir: 'events'
}).launch({
    token: 'the token of my bot'
});

Then run this file using Node.js.

$ node index.js

Node.js will run by default files named index.js so you can just run this :

$ node
See on GitHub
Documentation
Node.js
create a bot application