Closed technicalpickles closed 8 years ago
:+1:
There's a few other places that could use this, like "am I on call". I'm going to take a pass at some other refactorings to see if there's a better way to be doing this across multiple of the commands.
I updated this to work on am I on-call
and pager my schedule
. I also addressed the "Not found" I mentioned over on https://github.com/hubot-scripts/hubot-pager-me/pull/48#discussion_r40929209 cc @dirkaholic
One problem I've found with
who's on call
is that it sends one message per schedule that matches. That means flooding 20 messages if you have 20 schedules.This uses the
async
library to gather the schedules, and send them out as one message instead.