mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-28 01:32:42 +02:00
Add aliases
This commit is contained in:
parent
8340f9b95a
commit
de1e761623
15 changed files with 23 additions and 1 deletions
|
@ -28,7 +28,9 @@ export default class {
|
|||
public async listen(): Promise<string> {
|
||||
// Load in commands
|
||||
container.getAll<Command>(TYPES.Command).forEach(command => {
|
||||
this.commands.set(command.name, command);
|
||||
const commandNames = [command.name, ...command.aliases];
|
||||
|
||||
commandNames.forEach(commandName => this.commands.set(commandName, command));
|
||||
});
|
||||
|
||||
this.client.on('message', async (msg: Message) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue