This bot supports and uses DeepL for translations (optionally). If you want to enable the translations service, you can add a line in your .env
file as follows:
DEEPL_TOKEN="your deepl token"
You can sign up for a Free Tier of DeepL API, which allows 500,000 characters/month of language translations. The DeepL translation service unlocks some new commands for your bot:
/translate <text> <language>
- Translate any given piece of text into the language that you provide
/languages
- See a list of all supported languages
Using DeepL also adds a new app menu button (when you right click a message) to the bot which allows you to quickly translate any message in a channel into any language you want:
1. Go to the DeepL Translate API signup page to get an API key
Click "Sign up for free":
After logging in, you will be redirected to the Account Overview:
Click on the "Account" Tab on the Account Overview:
Scroll down and copy your Authentication Key for DeepL API: