Wrapper function which sets a generic error message to respond with and calls respond()
Gets an an array with all the parameters passed to a command
string[]
parses the eightball.json
file and returns the templates within as an object
object containing the templates in a series of arrays
A base function that returns whatever reply has been set by other base functions, the command object returns this response after the command has been successfully ran defaults to sending it as a normal message, but can send it as reply if replyTo is set to true
Returns the commands properties, for use in the Help command
object
The meat of the object, this function is called by the commander object and instantiates the object proper with all required values, then runs the encompassing function and returns the resulting promise object
Generated using TypeDoc
Returns a simple eightball response from a set of templates The templates should exist in the 'res' folder as
eightball.json