Skip to content

circuit/xlator-bot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

xlator-bot

This sample application shows how to receive Circuit Conversation updates and how to send Circuit conversation items with the circuit node SDK

Getting Started

    git clone https://github.com/circuit-sandbox/xlator-bot.git
    cd xlator-bot
    cp config.json.template config.json

Edit config.json

  • Change "client_id" and "client_secret" to the circuit account you'll use for the Xlator Bot. you can request client credentials for bots here https://circuit.github.io/oauth.html.
  • Change the apiKey to a google "Key for server applications" with access to the "Translate API".
    "client_id"          : "your circuit client id",
    "client_secret"      : "your circuit secret",
    "domain"             : "circuitsandbox.net",
    "apiKey"             : "google translation API key",

Run the sample application with

    npm install
    node index.js

Add the Xlator Bot user to one of your circuit conversations. The Xlator Bot will translate posts and reply with a comment. By default translation is done to English. The Xlator Bot will attempt to translate to another language if the first word of a post matches one of the languages in lang.json.

About

This sample application shows how to receive Circuit Conversation updates and how to send Circuit conversation items.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published