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

slackapi / hubot-slack / 385
82%

Build:
DEFAULT BRANCH: master
Ran 13 Oct 2016 09:42PM 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
385

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

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

139 of 170 relevant lines covered (81.76%)

19.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
src/bot.coffee
Jobs
ID Job ID Ran Files Coverage
1 385.1 13 Oct 2016 09:42PM UTC 0
81.76
Travis Job 385.1
2 385.2 13 Oct 2016 09:42PM UTC 0
81.76
Travis Job 385.2
Source Files on build 385
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #385
  • Pull Request #364
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