mirror of
https://github.com/Brandon-Rozek/Rozbot.git
synced 2024-10-17 21:04:34 -04:00
9 lines
356 B
JavaScript
9 lines
356 B
JavaScript
|
module.exports = function(commandName, condition, commandFunction) {
|
||
|
//Name for identification purproses
|
||
|
this.name = commandName;
|
||
|
//Must be a function which returns a boolean if it believes that the it's the appropriate command for the message
|
||
|
this.condition = condition;
|
||
|
//The command's core functionality
|
||
|
this.respond = commandFunction;
|
||
|
}
|