Open patsissons opened 8 years ago
should probably allow this to be disabled via an env var.
consider using for the thumb_url
might need to crop it into a square.
source:
test this format at https://api.slack.com/methods/chat.postMessage/test with:
"attachments": [{"text": "<http://giphy.com/labs/|Giphy Labs> (123KB)", "image_url": "http://giphy.com/static/img/labs.gif"}]
visualize in the message builder
we can confirm using the hubot-slack
adapter by checking that robot.adapterName == 'slack'
we can use the
customMessage
function in the slack adapater: https://github.com/slackhq/hubot-slack/blob/596c4181ccb9f8423c15077e3df2e960cd9981eb/src/slack.coffee#L286Some more info on it at these links: