diff --git a/index.js b/index.js index 0644c763e26115ff1cc307256ce6e36d6e410944..fb246a4be6c57fe071dd4397bfa6d6a6ffd8b6a7 100644 --- a/index.js +++ b/index.js @@ -34,8 +34,12 @@ app.post('/post', function(req, res){ var body = { response_type: "in_channel", - image_url: icon_url, - text: "Temperature: " + first_url + "\n" + "Condition: " + weatherC + "attachments": [ + { + "text": "Temperature: " + first_url + "\n" + "Condition: " + weatherC, + "image_url": icon_url, + } + ] }; res.send(body);