diff --git a/whatsapp-web.js/src/models/commands.js b/whatsapp-web.js/src/models/commands.js new file mode 100644 index 0000000..b64187c --- /dev/null +++ b/whatsapp-web.js/src/models/commands.js @@ -0,0 +1,10 @@ +class Command{ + + + constructor({command,callback}){ + this.command = command; + this.callback = callback; + } +} + +module.exports.Command = Command; diff --git a/whatsapp-web.js/src/userInteraction/commands.js b/whatsapp-web.js/src/userInteraction/commands.js deleted file mode 100644 index 01dc992..0000000 --- a/whatsapp-web.js/src/userInteraction/commands.js +++ /dev/null @@ -1,23 +0,0 @@ -class Command{ - - - constructor({command, message, callback}){ - this.command = command; - this.message = message; - this.callback = callback; - } - - getCommand(){ - return this.command; - } - - getCallback(){ - return this.callback; - } - - getMessage(){ - return this.message; - } -} - -module.exports.Command = Command;