Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 2.86 KB

README.md

File metadata and controls

53 lines (34 loc) · 2.86 KB

RPI Ambulance's Slack integrations

There are a number of integrations included in this Node.js file, intended to ease logistics and information-sharing of RPI Ambulance members. Read on to find out more.

AmIResponding?

This integration was the origin of this entire project. AIR provides IamResponding-type functionality for free and within a Slack team. It utilizes Slack's bot users API to post an interactive message when a call is dispatched.

This interactive message posts some information about the call and queries channel members if they're responding or not. It then posts each person's response for the channel to see.

Here's how a dispatch looks in Slack—with a few people who responded to the call:


/whoson slash command

With no parameters passed to it, this integration provides the RPI Ambulance crew schedule for:

  • The current crew, between 1800 and 0600 hours
  • The previous night's crew and tonight's crew, between 0600 and 0900 hours
  • Tonight's crew, between 0900 and 1800 hours

These differences provide a logical and semantically accurate description of the status of night crews. The time between 0600 and 0900 hours was specifically selected because the previous night's crew will often still respond to emergency calls—even after their "shift" ended.

When adding a parameter, one can receive the scheduled crew for any day from the previous day to one week in the future. For example:

  • /whoson yesterday
  • /whoson mon
  • /whoson Thursday
  • /whoson SAT

A more recent feature is the ability to get a week's worth of crews starting on the current day with /whoson week.

Capitalization does not matter for the parameters, but one must type the entire day of the week (or its common abbreviation), spelled correctly.


RPIAlert

The RPIAlert system provides audible, SMS, and email notifications to the RPI campus during high-priority, critical, rapidly changing events. Several systems had been set up to work with RPIAlert, including Concerto Emergency, most of which utilized RPIAlert's deprecated public RSS feed.

This Slack integration cURLs a JavaScript file from RPI containing an alert_content variable, and then it forwards the alert to everybody on the #alerts channel, a channel specifically intended to never be muted.

For good measure, here's how an alert looks in the channel:


Credits

Developers

License

RPI Ambulance's Slack integrations are provided under the MIT license.