skibish/hubot-weather — pull request #2 by janthony (2014-10-15 04:05:48+00:00)
Title: Implement triggering weather function from robot.emit

Made changes so you could trigger weather from a script like below;

module.exports = (robot) ->
robot.respond /(weather)?/i, (msg) ->
text = msg.message.text
if text.match(/weather/i)
robot.emit "weather", msg, { city : "Melbourne" } // User need to figure out the logic to pull city from the msg