the plugin is initialized in the module’s main export the ‘respond’ method takes a regex and a callback the ‘send’ method in the message can be used to answer the query a hubot plugin is just a coffeescript file
the ‘http’ method in ‘msg’ starts composing an http request chain it with ‘query’ to set the query parameters ...or with ‘header’ to set the headers for the request
the ‘http’ method in ‘msg’ starts composing an http request chain it with ‘query’ to set the query parameters ...or with ‘header’ to set the headers for the request perform the request with ‘get’, ‘post’, ‘put’, ‘patch’ or ‘delete’!
look! a copy of rms’ famous interjection speech! use ‘hear’ instead of ‘respond’ to listen to all incoming chat messages ...and then reply with the speech if somebody says “linux”