This sample app is a translator app that runs DeepL's awesome APIs for translating Slack message text into a different language.
This app has been transferred to the official Slack sample app repo: https://github.com/slack-samples/deno-deepl-translator 🎉 Please use the app instead!
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/
First off, let's enable the "setup" workflow!
slack deploy
slack trigger create --trigger-def triggers/setup.ts
You will get a URL (e.g., https://slack.com/shortcuts/Ft***/****
) to invoke
the setup workflow. Once you can share the URL in your Slack workspace, any
users in the workspace can enable the translator app in any public channels.
Add your DeepL API key to the app env variables:
slack env add DEEPL_AUTH_KEY <your own key here>
Add the deployed app to the channels you've listed in the step 1.
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.
The MIT License