Skip to content
Snippets Groups Projects
Commit 711d6e9e authored by ryadav88's avatar ryadav88
Browse files

add icon

parent 86edcca6
No related branches found
No related tags found
No related merge requests found
...@@ -30,9 +30,11 @@ app.post('/post', function(req, res){ ...@@ -30,9 +30,11 @@ app.post('/post', function(req, res){
var data = JSON.parse(body); var data = JSON.parse(body);
var first_url = data.current_observation.temp_f; var first_url = data.current_observation.temp_f;
var weatherC = data.current_observation.weather var weatherC = data.current_observation.weather
var icon_url = data.current_observation.icon_url
var body = { var body = {
response_type: "in_channel", response_type: "in_channel",
pretext: icon_url
text: "Temperature: " + first_url + "\n" + "Condition: " + weatherC text: "Temperature: " + first_url + "\n" + "Condition: " + weatherC
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment