There is for now only one Default Event which is the message event. To use it, simply execute the useDefaultEvents function from the CommandHandler Namespace.
There is for now only two default Command which are the help and ping command. To use it, simply execute the useDefaultCommands function from the CommandHandler Namespace.
{% hint style="danger" %}
Both must be used after the create function.
{% endhint %}
{% code title="index.js" %}
const {CommandHandler} = require('advanced-command-handler');
CommandHandler
.create({
commandsDir: 'commands',
eventsDir: 'events',
})
.useDefaultEvents()
.useDefaultCommands()
.launch({
token: 'token goes here',
});{% endcode %}