From 133625c0f61484d0e9c3d081b24d6bb408796446 Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Sun, 11 Dec 2022 13:41:25 +1100 Subject: [PATCH] remove alias support --- bot/util/commandLoader.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bot/util/commandLoader.js b/bot/util/commandLoader.js index 3560425..e7d77dd 100644 --- a/bot/util/commandLoader.js +++ b/bot/util/commandLoader.js @@ -13,12 +13,8 @@ class CommandLoader { const name = file.substr(file.indexOf('/') + 1).slice(0, -3); const category = file.substr(0, file.indexOf('/')); const command = new (require(this.client.path + '/commands/' + file))(name, category); - this.client.commands.set(command.name, command); this.client.cooldowns.set(command.name, new Map()); - command.aliases.forEach(alias => { - this.client.aliases.set(alias, command.name); - }); } catch (error) { this.client.logger.error('COMMAND_LOADER_ERROR', `Failed to load ${file}: ${error}`); }