🍪 We use cookies to provide necessary functionality and an improved experience.
Read our Cookie Policy.
pager 2.0.3
an Abbot package for Discord by Serious Business
Interact with PagerDuty services, schedules, and incidents with Abbot.
About Abbot
Abbot is a programmable bot that turns your team chat into a shared command center. We handle all the boilerplate of building and running these conmmands so that you can focus on making tools that help you ship faster.
We built Abbot because we saw the power of this style of work (called ChatOps), when we worked at GitHub. ChatOps made it possible for GitHub to work productively without meetings, while globally distributed. We think it's a pretty great way to work, so we made it easy to use in Slack, Discord, and Microsoft Teams.
The pager skill will attempt to map your chat user to a PagerDuty user via email. To see if Abbot already knows your email (obtained from your chat platform), @abbot my email. To set your global Abbot email, @abbot my email is {email}. To set an email address just for the pager skill, @abbot pager me as {email}.
Examples
With that mapping in place, a chat user can be paged like so:
@paul> @abbot pager trigger @haacked hey, the site is down
@abbot> :pager: triggered! Incident #8 assigned to @haacked
Or trigger an incident assigned to an escalation policy:
@haacked> @abbot pager trigger ops hey, the site is down
@abbot> :pager: triggered! Incident #8 assigned to ops!
Check on open incidents:
@haacked> @abbot pager sup
@abbot> Triggered:
----------
8: 2014-11-05T20:17:50Z site is down - assigned to haacked
Acknowledged:
-------------
7: 2014-11-05T20:16:29Z omgwtfbbq - assigned to haacked
Configuration@abbot pager me as {email} - to set your PagerDuty email if it's different from your chat email. Note that @abbot my email is {email} sets your chat email if it's currently unknown.
@abbot pager bot is {email} - to set the email address for your PagerDuty bot account.
@abbot pager subdomain is {subdomain} - to set your PagerDuty's account subdomain. Only specify the subdomain part of the URL.
@abbot pager service is {service-id} - If your PagerDuty account has more than one service, you can specify which service to use for incidents for the current room. If your PagerDuty account has one service, this isn't needed.
Usage@abbot pager acknowledge - Acknowledge triggered alerts assigned to you. Alternative usage: @abbot pager ack@abbot pager acknowledge! - Acknowledge all triggered not just yours. Alternative usage: @abbot pager ack!@abbot pager acknowledge {incident1-number} {incident2-number} ... {incidentN-number} - Acknowledge all specified incidents.
@abbot pager trigger @{user} {message} - Triggers the pager and assigns it to the specified user. Alternative usage @abbot pager page @{user} {message}.
Example: @abbot pager trigger @paul did you drop the database again?@abbot pager trigger {policy} {message} - Trigger an incident assigned to an escalation policy. Alternative usage: @abbot pager page {policy} {message}
Example: @abbot pager trigger ops the site is down.
@abbot pager incidents - List open incidents and their status. Alternative usage: @abbot pager sup@abbot pager note {incident-number} {content} - Adds a note to the specified incident.
@abbot pager notes {incident-number} - Shows notes for the specified incident.
@abbot pager resolve - Resolve acknowledged incidents assigned to you. Alternative usage: @abbot pager res@abbot pager resolve! - Resolve all acknowledged incidents, not just yours. Alternative usage: @abbot pager res!@abbot pager resolve {incident1-number} {incident2-number} ... {incidentN-number} - Resolve all specified incidents.
@abbot pager schedules - Check up coming schedule, and schedule shift overrides on it.
@abbot pager services - Lists the set of services associated with your PagerDuty account.
Code
Version History
Version
Created
Author
Release Notes
Installs
2.0.3
10/28/2021
haacked
More handling of null edge cases
2
2.0.2
10/28/2021
haacked
Added better error handling around pager duty API errors.
0
2.0.1
10/22/2021
haacked
Fixed the command to set the PagerDuty bot email address.
0
2.0.0
9/18/2021
haacked
Saving the PagerDuty service Id is per-room. Previous versions of this skill used the room-name as a key to save these values. However, room names can change. Now it uses the room Id if available, otherwise it uses the room name.
0
1.0.0
7/22/2021
haacked
Initial release! ✨
3
Sign in to add this to Discord
You need an account to install this package with Abbot. Signing in with Discord will create an account if you don't have one already.
Not using Discord? No worries! Abbot works in Slack and Discord.