This Slack command script is deployable to Webtask.io. Uses Google Translate for translation
First you will need to have accounts for Webtask.io, Google Translate, and a Slack Domain
- Install Webtask CLI
- Google API Key
- Register the Slack App
- Add the Slack Token to
.env
see.env.sample
for availableKEY=VALUES
wt create dist/translate.js \
--name slack-translate \
--secret-file .env \
--dependency axios@0.16.2
npm run deploy
Once everything is set up in a public Slack channel, use the tool like so...
> /translate Hello World -- es
> Hola Mundo
npm test
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull/merge request to a maintainer :D
- Sean Graham - Initial work - sgraham785