Skip to content

Instantly share code, notes, and snippets.

@LunaCodeGirl
Created April 28, 2016 19:33
Show Gist options
  • Select an option

  • Save LunaCodeGirl/a1c18981ffd81dd12c26bb6b822e29b7 to your computer and use it in GitHub Desktop.

Select an option

Save LunaCodeGirl/a1c18981ffd81dd12c26bb6b822e29b7 to your computer and use it in GitHub Desktop.

Revisions

  1. LunaCodeGirl created this gist Apr 28, 2016.
    47 changes: 47 additions & 0 deletions Query JSON
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    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"
    }
    ]
    };