Created
February 6, 2018 19:04
-
-
Save brianleroux/4f1fb767dcab4f045ad2c082a6b15192 to your computer and use it in GitHub Desktop.
src/slack/bot-slash/index.js
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
exports.handler = function slash(event, context, callback) { | |
callback(null, { | |
text: 'Hello!', | |
attachments: [{ | |
text: 'Click the button', | |
fallback: 'Click the button', | |
callback_id: 'clicky', | |
color: '#eheheh', | |
actions: [{ | |
name: 'hello', | |
text: 'hello', | |
type: 'button', | |
value: 'eh' | |
}] | |
}] | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment