https://github.com/eastend-street/translation_slackbot
Translation slack bot🗣 English ↔ Japanese / Other languages→ English (Python and Docker)
https://github.com/eastend-street/translation_slackbot
docker google-traslate-api python slack slack-bot
Last synced: 2 months ago
JSON representation
Translation slack bot🗣 English ↔ Japanese / Other languages→ English (Python and Docker)
- Host: GitHub
- URL: https://github.com/eastend-street/translation_slackbot
- Owner: eastend-street
- Created: 2017-09-12T07:17:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T08:35:06.000Z (almost 5 years ago)
- Last Synced: 2025-05-13T20:44:15.265Z (about 1 year ago)
- Topics: docker, google-traslate-api, python, slack, slack-bot
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Translation Slack Bot
Translation Slack Bot is a multilingual translation bot on Slack using Google Cloud Translation API.
You can translate English to Japanese, Japanese to English, and the other languages to English. It automatically detects the language and translates it.

## Demo screenshot

## Requirements
Docker, Python3, and Google Cloud Translation AP
## Usage
### 1. Download
```
git clone https://github.com/eastend-street/translation_slackbot.git
```
### 2. Make build.sh like build.sh.sample
You don't have to change this code, just copy it. Edit it if you want to change your docker image tag name, the default name is "translation_slack_bot".
```
sudo docker stop `sudo docker ps -f ancestor= translation_slack_bot:latest -q`$
sudo docker build -t translation_slack_bot .$
```
### 3. Make run.sh like run.sh.sample
Write your Google Cloud Translation API Key and directory in run.sh
```
sudo docker stop `sudo docker ps -f ancestor=translation_slack_bot:latest -q`$
sudo docker run -it \
-e "GOOGLE_APPLICATION_CREDENTIALS=keys/your_goolgle_translate_api_key" \
-v /home/path/to/your/directory/app:/app \
translation_slack_bot \
bash
```
### 4. Create Slack app
https://api.slack.com/apps?new_app=1
### 5. Build & Run
Build
```
./build.sh
```
Run
```
./run.sh
```
## Author
[eastend-street](https://github.com/eastend-street)