This bot being invited to a Slack channel translates all the messages into the language specified in the config. It doesn't have any commands or whatever else yet, just translates all. It's based on Google Translate API
Sergey: Привет
translate: Hi
You need to set the target language (targetLang
var) in the variables when creating the bot (with the 2 letters language code: fr, en, es, ko, de, etc...) in slack-translate.js
.
You need to create a bot on slack and get a bot access token.
Then set it in the botToken
variable in slack-translate.js
.
$ npm start
Make sure you run:
$ npm i
before to install the dependencies.