From 95dc1ae2180fcc3f3ec2ae8ad5bc0d4d126e69ec Mon Sep 17 00:00:00 2001 From: Mohammed Ashab Uddin Date: Tue, 21 Jul 2020 13:57:26 +0400 Subject: [PATCH] changed location for command.js --- whatsapp-web.js/src/models/commands.js | 10 ++++++++ .../src/userInteraction/commands.js | 23 ------------------- 2 files changed, 10 insertions(+), 23 deletions(-) create mode 100644 whatsapp-web.js/src/models/commands.js delete mode 100644 whatsapp-web.js/src/userInteraction/commands.js 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;