ernesto-jimenez / devfest-london-2016

Code from the talk at DevFest London 2016

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/translate command for Slack

This is a small Slack application to be deployed on Google App Engine. It offers a simple /translate command to translate phrases into english.

It was initially developed for a talk on DevFest London in 2016.

Requirements

In order to run this app, you need to:

Deploying and installing the application

  1. Create a project on Google Cloud and save the project ID.
  2. Create an API Key for Google Translate and save it.
  3. Create a Slash Command integration in Slack and pointing to https://[ YOUR PROJECT ID].appspot.com and save the token.
  4. Deploy the application
# Download the app's code
$ go get github.com/ernesto-jimenez/devfest-london-2016

# Go to the app's folder
$ cd $GOPATH/src/github.com/ernesto-jimenez/devfest-london-2016

# Deploy your app using appcfg.py from the App Engine SDK
$ appcfg.py update \
    --application [ YOUR PROJECT ID ] \
    -E TOKEN:[ YOUR SLACK TOKEN ] \
    -E TRANSLATE_KEY:[ YOUR TRANSLATE API KEY ] \
    app.yaml

You are ready to go.

About

Code from the talk at DevFest London 2016


Languages

Language:Go 100.0%