hubot-slack-reaction
slack.reaction event for hubot
Last updated 4 years ago by michielrensen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-slack-reaction 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.4                                ...           latest (4 years ago)

5 Versions

  • 0.0.4                                ...           4 years ago
  • 0.0.4444                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 5
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |