mirror of
https://github.com/Brandon-Rozek/Rozbot.git
synced 2024-11-21 20:46:28 -05:00
8 lines
356 B
JavaScript
8 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;
|
|
}
|