run-on-slack-deepl
This sample app is a translator app that runs DeepL's awesome APIs for translating Slack message text into a different language.
Steps to enable this app
0. Enable the next-gen platform in your workspace
To use this sample, you first need to install and configure the Slack CLI. Step-by-step instructions can be found in Quickstart Guide. Also, the beta platform needs to be enabled for your paid Slack workspace.
And then, you can use this GitHub repository as the template for your app.
slack create my-deepl-slack-app -t seratch/run-on-slack-deepl
cd my-deepl-slack-app/
1. Enable reaction_added trigger
First off, open triggers/reaction_added.ts
source file and modify it to have a
valid list of channel IDs to enable this app. And then, run the following CLI
command:
slack deploy
slack trigger create --trigger-def triggers/reaction_added.ts
2. Set DeepL API key to the app
Add your DeepL API key to the app env variables:
slack env add DEEPL_AUTH_KEY <your own key here>
3. Add the app to the channels
Add the deployed app to the channels you've listed in the step 1.
4. Add a reaction to a message in the channel
Add :jp:
reaction to any message in the channel. If everything is fine, you
will see the same content that is translated into Japanese in its thread.
LICENSE
The MIT License