• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

slackapi / hubot-slack / 384
82%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2016 09:00PM UTC
Jobs 2
Files 5
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
384

Pull #363

travis-ci

web-flow
Add hubot.Robot.react

Per #360, this implements `robot.react` as a replacement for the
approach from:

https://github.com/mbland/hubot-slack-reaction-example/blob/v1.1.0/scripts/handle-reaction.coffee

Specifically, the `ReactionMessage` definition will no longer be
required in client code, and this:

  robot.listen(
    (message) -> message instanceof ReactionMessage
    handleReaction
  )

can now become:

  robot.react handleReaction

`robot.react` can also take optional  `matcher` and `options` arguments
just like the underlying `robot.listen` method:

  robot.react(
    (message) -> message.type == 'added' && message.reaction == '+1'
    {id: 'my-reaction-matcher'}
    handleReaction
  )
Pull Request #363: Add hubot.Robot.react

10 of 10 new or added lines in 1 file covered. (100.0%)

135 of 164 relevant lines covered (82.32%)

21.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 384.1 06 Oct 2016 09:00PM UTC 0
82.32
Travis Job 384.1
2 384.2 06 Oct 2016 09:00PM UTC 0
82.32
Travis Job 384.2
Source Files on build 384
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #384
  • Pull Request #363
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc