Skip to content

Instantly share code, notes, and snippets.

@LunaCodeGirl
Created April 28, 2016 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LunaCodeGirl/a1c18981ffd81dd12c26bb6b822e29b7 to your computer and use it in GitHub Desktop.
Save LunaCodeGirl/a1c18981ffd81dd12c26bb6b822e29b7 to your computer and use it in GitHub Desktop.
Slack Bot JSON
var message_with_attachments = {
"channel": channel,
"text": '*How are you feeling ?*',
"attachments": [
{
"fallback": "Sigmend want's to know your mood! Open Slack to respond.",
"text": "Click on the reaction that best matches your mood.\n",
"mrkdwn_in": ["text"]
},
{
"fields": [
{
"value": "😀 - I'm great!",
"short": true
}
],
"color": "#96E5B1"
},
{
"fields": [
{
"value": "😐 - I'm ok, could be better, could be worse.",
"short": false
}
],
"color": "#F8F989"
},
{
"fields": [
{
"value": "😩 - I've had better days...",
"short": false
}
],
"color": "#212121"
},
{
"fields": [
{
"value": "😡 - I'm not ok, I have a problem.",
"short": false
}
],
"color": "#E9113A"
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment