changed location for command.js
This commit is contained in:
10
whatsapp-web.js/src/models/commands.js
Normal file
10
whatsapp-web.js/src/models/commands.js
Normal file
@@ -0,0 +1,10 @@
|
||||
class Command{
|
||||
|
||||
|
||||
constructor({command,callback}){
|
||||
this.command = command;
|
||||
this.callback = callback;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports.Command = Command;
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user