diff --git a/whatsapp-web.js/src/models/commands.js b/whatsapp-web.js/src/models/commands.js index 89256c5..5b1a07f 100644 --- a/whatsapp-web.js/src/models/commands.js +++ b/whatsapp-web.js/src/models/commands.js @@ -83,17 +83,16 @@ class Command{ */ getInput(message){ - let splitMsg = message.split(' '); + let splitMsg = this._getInputMessage(message); let splitCommand = this.command.split(' '); let input = {}; - + let debug = ''; for(let i = 0; i < splitMsg.length; i++){ if(splitCommand[i].startsWith('<')){ let key = splitCommand[i].slice(1, splitCommand[i].length-1); input[key] = splitMsg[i]; } } - return input; }