Custom Messages

SLCommands can handle command permissions and other checks, like devsOnly. And they are very customizable, you can handle yourself or let us handle, but with your custom messages.

To use custom messages you just need to create a JSON file and use a specific schema (click here to check). Then just pass the messages file path to your handler:

const SLHandler = require('sl-commands').default
const { join } = require('path')

new SLHandler({
  /** The absolute path to the JSON file */
  messagesPath: join(__dirname, 'messages.json'),

  commandsDir: join(__dirname, 'commands'),
  botToken: 'Your_Bot_Token',
})

Last updated