A Slack bot to translate Japanese messages into English by using Google Cloud Translation API
- Enable Google Cloud Translation API and get TRANSLATE_KEY
- Add a Slack bot
- Ruby (>= 2.0)
This bot is tested on Ubuntu 16.04.
git clone [email protected]:takram-design-engineering/translation-bot.git
cd translation-bot
sudo gem install bundler
bundle install
sudo cp ~/translation-bot/systemd/translation-bot.service /etc/systemd/system/
sudo systemctl enable translation-bot.service
Reload systemd after editing /etc/systemd/system/translation-bot.service
.
sudo systemctl daemon-reload
For development:
TRANSLATE_KEY=xxxxx SLACK_API_TOKEN=xxxxx bundle exec ruby bot.rb
For systemd:
sudo systemctl start translation-bot.service
The MIT License
Copyright (c) 2017 Takram