generated from slack-samples/deno-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmanifest.ts
29 lines (28 loc) · 909 Bytes
/
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
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 reacjilator from "./workflows/reacjilator.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 2",
description: "A Slack app translates Slack messages",
icon: "assets/default_new_app_icon.png",
functions: [detectLang, translate],
workflows: [reacjilator],
outgoingDomains: [
"api-free.deepl.com",
"api.deepl.com",
],
botScopes: [
"commands",
"chat:write",
"channels:history",
"groups:history",
"reactions:read",
],
});