Default Commands & Events

Defaults Events

There is for now only one Default Event which is the message event. To use it, simply execute the useDefaultEventsarrow-up-right function from the CommandHandler Namespace.

Defaults Commands

There is for now only two default Command which are the help and ping command. To use it, simply execute the useDefaultCommandsarrow-up-right function from the CommandHandler Namespace.

triangle-exclamation

Example

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

CommandHandler
.create({
    commandsDir: 'commands',
    eventsDir: 'events',
})
.useDefaultEvents()
.useDefaultCommands()
.launch({
    token: 'token goes here',
});

Last updated