Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/driftt/babel-bot
A bot to automatically translate conversations.
https://github.com/driftt/babel-bot
Last synced: about 1 month ago
JSON representation
A bot to automatically translate conversations.
- Host: GitHub
- URL: https://github.com/driftt/babel-bot
- Owner: Driftt
- License: mit
- Created: 2017-11-14T02:39:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T16:58:16.000Z (over 1 year ago)
- Last Synced: 2024-03-26T22:08:48.334Z (10 months ago)
- Language: JavaScript
- Size: 706 KB
- Stars: 3
- Watchers: 65
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Babel-Bot
---
Example Project: Conversation Translation bot for Drift.Note this project is no longer actively maintained.
Requires a Google API key with access to the Google Cloud Transation service. You can create one from here: https://cloud.google.com/translate/.
You can find your Drift OAuth Access token by following the quick start here.
Once you create the Drift app, you should set the `new_message` and `button_action` webhooks and point to your deployed Heroku (or other service) instance of the babel-bot server with endpoint `/api`.
## Deploying to Heroku
### CLI install
1. `heroku create`
2. `git push heroku master`
3. `heroku addons:create heroku-postgresql:hobby-dev`
4. `heroku config:set BOT_API_TOKEN={OAuth Access token}`
5. `heroku config:set GOOGLE_API_KEY={Google Api Key}`
### GUI install
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Driftt/babel-bot)