Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created February 6, 2018 19:04
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 brianleroux/4f1fb767dcab4f045ad2c082a6b15192 to your computer and use it in GitHub Desktop.
Save brianleroux/4f1fb767dcab4f045ad2c082a6b15192 to your computer and use it in GitHub Desktop.
src/slack/bot-slash/index.js
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