-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.ts
73 lines (72 loc) · 1.54 KB
/
project.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { Project } from "slack-cloud-sdk/mod.ts";
import {
CreateTerm,
ListAllIndexes,
ListAllTerms,
ListIndexedTerms,
RemoveTerm,
ShowTerm,
UpdateTerm,
} from "./functions/index.ts";
import {
CreateTermEcho,
RemoveTermEcho,
ShowListOfAllIndexes,
ShowListOfAllTerms,
ShowListOfIndexedTerms,
ShowOneTerm,
UpdateTermEcho,
} from "./workflows/index.ts";
import {
CreateTermEchoShortcut,
RemoveTermEchoShortcut,
ShowListOfAllIndexesShortcut,
ShowListOfAllTermsShortcut,
ShowListOfIndexedTermsShortcut,
ShowTermShortcut,
UpdateTermEchoShortcut,
} from "./triggers/index.ts";
import { Glossary } from "./tables/index.ts";
Project({
name: "swords",
description:
"Slack WORDS: Create and manage pairs of words, terms and definitions in the glossary data table hosted by Slack",
icon: "assets/icon.png",
runtime: "deno1.x",
botScopes: [
"commands",
"chat:write",
"chat:write.public",
"tables:read",
"tables:write",
],
functions: [
CreateTerm,
UpdateTerm,
RemoveTerm,
ListAllTerms,
ShowTerm,
ListAllIndexes,
ListIndexedTerms,
],
workflows: [
CreateTermEcho,
UpdateTermEcho,
RemoveTermEcho,
ShowListOfAllTerms,
ShowOneTerm,
ShowListOfAllIndexes,
ShowListOfIndexedTerms,
],
triggers: [
CreateTermEchoShortcut,
UpdateTermEchoShortcut,
RemoveTermEchoShortcut,
ShowListOfAllTermsShortcut,
ShowTermShortcut,
ShowListOfAllIndexesShortcut,
ShowListOfIndexedTermsShortcut,
],
tables: [Glossary],
outgoingDomains: [],
});