-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.ts
35 lines (34 loc) · 1.04 KB
/
manifest.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { Manifest } from "deno-slack-sdk/mod.ts";
import tagOncall from "./workflows/tag_oncall.ts";
import { GetPrimaryOncallData } from "./functions/get_primary_oncall_data.ts";
import oncallDataCache from "./datastores/oncallDataCache.ts";
/**
* Oncall Bot app tags the current oncall engineer in channels.
* During the open beta period, only public channels are supported.
* To run this app, a PagerDuty account is required.
*/
export default Manifest({
name: "oncall",
description: "A Slack app that tags the current oncall engineer",
icon: "assets/default_new_app_icon.png",
functions: [GetPrimaryOncallData],
datastores: [oncallDataCache],
workflows: [tagOncall],
outgoingDomains: ["api.pagerduty.com"],
botScopes: [
"commands",
"app_mentions:read",
"chat:write",
"chat:write.public",
"channels:join",
"channels:write.invites",
"datastore:write",
"datastore:read",
"groups:write.invites",
"reactions:read",
"triggers:read",
"triggers:write",
"users:read",
"users:read.email",
],
});