diff --git a/index.js b/index.js index fa58547ee871f765ed04986931d52fb4073ab5bd..40938f334bcb83f3f5ed501daf68de9204788d8b 100644 --- a/index.js +++ b/index.js @@ -47,9 +47,9 @@ app.post('/post', function(req, res){ if (!error && response.statusCode == 200) { var data = JSON.parse(body); var temperature = data.current_observation.temperature_string; - var weatherCondition = data.current_observation.weather - var icon_url = data.current_observation.icon_url - var location = data.current_observation.display_location.full + var weatherCondition = data.current_observation.weather; + var icon_url = data.current_observation.icon_url; + var location = data.current_observation.display_location.full; var body = { response_type: "in_channel", @@ -62,6 +62,7 @@ app.post('/post', function(req, res){ } ] }; + res.send(body); } });