diff --git a/index.js b/index.js index 8b144cd489f94e4b88f8cc645be6ec1affa5f466..c06dd28f0039d48b76823026446cdd26f629ba7a 100644 --- a/index.js +++ b/index.js @@ -30,9 +30,11 @@ app.post('/post', function(req, res){ var data = JSON.parse(body); var first_url = data.current_observation.temp_f; var weatherC = data.current_observation.weather + var icon_url = data.current_observation.icon_url var body = { response_type: "in_channel", + pretext: icon_url text: "Temperature: " + first_url + "\n" + "Condition: " + weatherC };