This repository was archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Module: Alias
Paul edited this page Jul 17, 2020
·
2 revisions
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.
The alias module doesn't have any startup configurations
Name: Alias
Value: Needs to be a string array. Each element is an alias for the command.
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"
©BananenBot 2017-2020 - all rights saved