forked from slack-samples/deno-message-translator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.ts
54 lines (53 loc) · 1.63 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { Manifest } from "deno-slack-sdk/mod.ts";
import { def as detectLang } from "./functions/detect_lang.ts";
import { def as translate } from "./functions/translate.ts";
import { def as configure } from "./functions/configure.ts";
import { def as maintainMembership } from "./functions/maintain_membership.ts";
import reacjilator from "./workflows/reacjilator.ts";
import configurator from "./workflows/configurator.ts";
import maintenanceJob from "./workflows/maintenance_job.ts";
/**
* DeepL Translator app translates Slack messages in channels.
* During the open beta period, only public channels are supported.
* To run this app, DeepL API account is required.
* Refer to https://www.deepl.com/en/docs-api for DeepL API details.
*/
export default Manifest({
name: "DeepL Translator",
description: "A Slack app translates Slack messages",
icon: "assets/default_new_app_icon.png",
functions: [
detectLang,
translate,
configure,
maintainMembership,
],
workflows: [
reacjilator,
configurator,
maintenanceJob,
],
outgoingDomains: [
"api-free.deepl.com",
"api.deepl.com",
],
botScopes: [
// reacjilator
"commands",
"chat:write",
"channels:history",
"groups:history",
// Technically, the app works for DMs too but disabled by default to avoid end-user confusion
// "mpim:history",
// "im:history",
"reactions:read",
// configurator
"triggers:read",
"triggers:write",
"channels:join",
"groups:read",
// Technically, the app works for DMs too but disabled by default to avoid end-user confusion
// "mpim:read",
// "im:read",
],
});