Giter Site home page Giter Site logo

eastend-street / translation_slackbot Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 19 KB

Translation slack bot🗣 English ↔ Japanese / Other languages→ English (Python and Docker)

Python 92.18% Dockerfile 7.82%
slack docker python slack-bot google-traslate-api

translation_slackbot's Introduction

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.



slack-bot-logo



Demo screenshot

slack-bot



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

translation_slackbot's People

Contributors

eastend-street avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

translation_slackbot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.