Your bot can be customized if you want it to have a different behaviour. The options that it supports are:
The symbol that goes before the command name.
- Default value:
!
- Value type:
string
The property of the Message
object which contains its text.
- Default value:
content
- Value type:
string
The event emitted by the Client
when the bot receives a message.
- Default value:
message
- Value type:
string
Symbols to format text.
- Value type:
object
- Value type of each prop:
string
Default value: *
Default value: _
Default value: empty
Default value: ~
Default value: ```
Messages that the bot sends to the user for various situations.
- Value type:
object
The message sent by the bot when there is an internal error.
- Default value:
There was an error processing your command
- Value type:
string
Emojis that go before messages for various situations.
Emoji used to list commands. This is used in the help command, and when suggesting commands.
- Default value: ✅
- Value type:
string
Emoji used when there is an internal error, or when a non existent command is sent by the user.
- Default value: ❌
- Value type:
string
Emoji used for the help commands. It used on the general and specific help, and also when the user sends a non existent command.
- Default value: ❓
- Value type:
string
The message sent by the bot when the user sends a non existent command.
Value type: object
Similarity rate used to suggest similar commands. How similar the command needs to be in order to be suggested.
- Default value: 0.5
- Value type:
number
from 0 (totally different) to 1 (equal)
Part of the message letting the user know that the command doesn't exist.
- Default value:
(commandName) => `${commandName} doesn't exist`
- Value type:
string | ((commandName: string) => string)
Part of the message before listing similar commands in case there are.
- Default value:
Maybe you meant
Part of the message letting the user know how to use the help command.
- Default value:
(helpCommandName) => `Send ${helpCommandName} for more info`
- Value type:
string | ((helpCommandName: string) => string)
Messages sent by the bot when the user sends the help
command.
General help:
Specific command help:
Value type: object
Name of the help command.
- Default value:
help
- Value type:
string
Part of the message before listing available commands.
- Default value:
I can handle the following commands
- Value type:
string
Part of the general help message suggesting to use the specific help command.
- Default value:
(specificHelpCommand) => `Send ${specificHelpCommand} for more information about commands`
- Value type:
string | ((specificHelpCommand: string) => string)
Documentation object for the help command.
- Value type:
object
Short description of the help command.
- Default value:
Gives information about every command
- Value type:
string
Detailed explanation of the help command.
- Default value:
Use this command followed by another command's name to get more info about a it
- Value type:
string
Example of the command usage.
- Default value:
command name
- Value type:
string
Part of the message before showing the example of the command usage.
- Default value:
For example
- Value type:
string
Message sent for the specific help when the command doesn't have documentation.
- Default value:
This command doesn't have documentation
- Value type:
string
Data that will be passed to the auth
method. Could be tokens, or whatever you need.
- Default value:
null
- Value type:
any