Awesome
lemmy-translator-bot
This is a bot for lemmy, the fediverse link aggregator. It translates posts and comments when mentioned.
Setup
Clone the repository and install the dependencies with your choice of javascript package manager.
Create a file named .env
in the same directory as package.json
. There are 4 environent variables that need to be assigned in this file:
INSTANCE
: the instance the bot's account is onUSERNAME_OR_EMAIL
: username or email of the botPASSWORD
: password for the bot accountDEEPL_API_KEY
: API key required to use DeepL API. This will require making an account with DeepL
When the bot is setup, it can be started by running npm start
.
Usage
To use the bot, mention it and include the name of the language you are translating into. The name of the language must be in the language being translated into, e.g. English is "English", German is "Deutsch", Russian is "Русский", etc.