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

slackapi / hubot-slack / 385 / 1
82%
master: 82%

Build:
DEFAULT BRANCH: master
Ran 13 Oct 2016 09:42PM UTC
Files 5
Run time 0s
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

13 Oct 2016 09:41PM UTC coverage: 81.765%. First build
385.1

Pull #364

travis-ci

web-flow
Trigger enter/ leave actions by presence change

The current adapter implementation triggers robot.enter / robot.leave events when someone joins/ leaves a channel or
group. However, most Hubot scripts use these callbacks registers with the much more frequent Campfire/ XMPP/ etc
presence change events in mind (e.g. when someone logs on/ logs off). Since joining a slack channel is something you
tend to do only once, or at most once in a while, the callbacks are not so very useful at present for the slack adapter.

One downside to the new implementation is that because a presence change event is generic, not specific to a (Hubot)
room/ (Slack) channel, there is no room in the envelope passed to your enter/ leave callback. I adapted our own
scripts to use robot.messageRoom rather than envelope.reply, but am open to suggestions on how to improve this, perhaps
by looking at the feasibility on sending a enter/ leave notice to each channel the user in question is in.
Pull Request #364: Trigger enter/ leave actions by presence change

139 of 170 relevant lines covered (81.76%)

9.81 hits per line

Source Files on job 385.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 385
  • Travis Job 385.1
  • c135d288 on github
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