Closed VictorioBerra closed 8 years ago
Response.create
taking an array of responses would be useful in addition to this.
I'd rather the function on the Client
object be respond
, not response
.
Forgot to merge yesterday. Derp.
Thanks! :heart: :yellow_heart: :green_apple: :blue_heart: :purple_heart:
Added a function called 'response' which lets you send a response directly to the actions plugin for execution.
Usage:
Why?
This is useful for plugins that have response factories which might churn out responses in an array. In my case, I have a database driven plugin which compiles a list of various responses and is essentially re-writing the response.js module to fire act/notice/say/raw when it needs it.
Alternatives?
I suppose if response.js create() function could take an array, that might be a good alternative.