From 4a10f4edb1897ce4dc85e3e9d11ffd980b93c3f8 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 5 Jun 2021 13:05:25 -0400 Subject: [PATCH] Fix --- framework/Dispatcher.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/Dispatcher.js b/framework/Dispatcher.js index dc62bbe2..612d7645 100644 --- a/framework/Dispatcher.js +++ b/framework/Dispatcher.js @@ -23,7 +23,8 @@ module.exports = class CommandDispatcher { } async parseMessage(msg) { - const command = this.resolveCommand(command[2].toLowerCase()); + const matched = msg.content.match(this.commandPattern); + const command = this.resolveCommand(matched[2].toLowerCase()); if (!command) { return { command: this.registry.commands.find(cmd => cmd.unknown),