Module: Alias - Paultje52/BananenBase GitHub Wiki

The alias module lets you put aliases on commands.

For example, you can name a command ping, but you can give it an alias, for example p. Both .p and .ping run the same command.

Configuration

The alias module doesn't have any startup configurations

Command options

Name: Alias Value: Needs to be a string array. Each element is an alias for the command.

Example

In the command constructor

super(BananenBase, {
 name: "ping",
 description: "Test my reaction speed!",
 enabled: true
}, {
 name: "alias",
 value: ["p", "pingpong", "pong"]
});
// Adds to the command "ping" the aliases "p", "pingpong" and "pong"