Slack bot to translate chat messages of any language into specified language
Because we are an international team and sometimes I don't understand what they all are talking about.
Traductor is using Microsoft Translator API, because it's free π
Rename .env.example
file into .env
and fill in values in fields
BOT_NAME=slack_bot_name
BOT_TOKEN=slack_bot_token
BOT_AS_USER=1
CLIENT_ID=microsoft_translator_client_id
CLIENT_SECRET=microsoft_translator_client_secret
TRANSLATE_TO=en
ADD_MESSAGE=message_to_append
SUSPEND_TIMEOUT=600000
lib/lang_codes.js
Install dependencies of a project
$ npm i
Start server
$ npm start
@traductor: stop
β suspend the bot for 10 minutes in current channel/group