Created
April 22, 2016 19:46
-
-
Save devStepsize/bda1f3f86b9c7cb68ce02042f9258145 to your computer and use it in GitHub Desktop.
Botkit reply to Slack with attachments (from https://github.com/howdyai/botkit#botreply)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var reply_with_attachments = { | |
'username': 'My bot' , | |
'text': 'This is a pre-text', | |
'attachments': [ | |
{ | |
'fallback': 'To be useful, I need you to invite me in a channel.', | |
'title': 'How can I help you?', | |
'text': 'To be useful, I need you to invite me in a channel ', | |
'color': '#7CD197' | |
} | |
], | |
'icon_url': 'http://lorempixel.com/48/48' | |
} | |
bot.reply(message, reply_with_attachments); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment