https://github.com/kylestetz/simple-translate-bot
A slack translator bot that uses the new slack-client node module.
https://github.com/kylestetz/simple-translate-bot
Last synced: 2 months ago
JSON representation
A slack translator bot that uses the new slack-client node module.
- Host: GitHub
- URL: https://github.com/kylestetz/simple-translate-bot
- Owner: kylestetz
- Created: 2015-12-07T19:11:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-07T19:26:06.000Z (over 10 years ago)
- Last Synced: 2025-03-23T10:31:37.284Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Simple Translator Bot
This code will power a bot user on Slack, listening for the phrase `translate to :` and performing a translation on the text using the [Yandex Translator API](https://tech.yandex.com/translate/).
To run this bot on your Slack:
- 1. clone this repo: `git clone git@github.com:kylestetz/simple-translate-bot.git`
- 2. `npm install`
- 3. Sign up for a [Yandex Translator API key](https://tech.yandex.com/translate/) key, which requires - making a Yandex account
- 4. [Create a new bot integration](https://my.slack.com/services/new) in your Slack
- 5. Run the `index.js` file with your tokens:
```bash
SLACK_TOKEN=xoxb-123456 YANDEX_TOKEN=trnsl.1.1.123456 node index.js
```
:v: