Skip to content

A Slack bot to translate Japanese messages into English by using Google Cloud Translation API

Notifications You must be signed in to change notification settings

takram-design-engineering/translation-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translation Bot

A Slack bot to translate Japanese messages into English by using Google Cloud Translation API

Screenshot

Requirements

This bot is tested on Ubuntu 16.04.

Install

git clone [email protected]:takram-design-engineering/translation-bot.git
cd translation-bot
sudo gem install bundler
bundle install

Register as a systemd service (optional)

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

Run the server

For development:

TRANSLATE_KEY=xxxxx SLACK_API_TOKEN=xxxxx bundle exec ruby bot.rb

For systemd:

sudo systemctl start translation-bot.service

License

The MIT License
Copyright (c) 2017 Takram

About

A Slack bot to translate Japanese messages into English by using Google Cloud Translation API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages