hubot-slack-reaction

0.0.4 • Public • Published

Slack Reactions for hubot-slack

Give hubot the power to respond with a reaction on a message in Slack

To use slack.reaction events, just run the following in your hubot repository:

npm install hubot-slack-reaction --save

And then add hubot-slack-reaction to external-scripts.json.

This requires hubot-slack and uses the HUBOT_SLACK_TOKEN to work its magic.

Usage

Emit a slack.reaction event with the following parameters:

robot.emit 'slack.reaction',
    message: msg.message
    name: 'beer' # the name of the reaction with the : 

Attribution

The idea was born when reading hubot-slack-attachment and much of the structure comes form that project.

Kudos to:

License

This software is licensed under MIT License. See LICENSE for more details.

Readme

Keywords

Package Sidebar

Install

npm i hubot-slack-reaction

Weekly Downloads

43

Version

0.0.4

License

MIT

Last publish

Collaborators

  • michielrensen