This commit is contained in:
Dragon Fire
2021-06-05 13:05:25 -04:00
parent 3e6c30a09a
commit 4a10f4edb1
+2 -1
View File
@@ -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),