Code Monkey home page Code Monkey logo

hubot-gtalk's Introduction

A Hubot adapter for Gtalk

Gtalk is the Jabber-based instant messaging service provided by Google.

You should report any issues or submit any pull requests to the GTalk adapter repository.

Getting Started

You will also need to edit the package.json for your hubot and add the hubot-gtalk adapter dependency.

"dependencies": {
  "hubot-gtalk": ">= 0.0.1",
  "hubot": ">= 2.0.0",
  ...
}

Then save the file, and commit the changes to your hubot's git repository.

If deploying to Heroku you will need to edit the Procfile and change the -a campfire option to -a gtalk. Or if you're deploying locally you will need to use -a gtalk when running your hubot.

Configuring the Adapter

The GTalk adapter requires only the following environment variables.

  • HUBOT_GTALK_USERNAME (Should be full email address, e. g. [email protected])
  • HUBOT_GTALK_PASSWORD

And the following are optional.

  • HUBOT_GTALK_WHITELIST_DOMAINS
  • HUBOT_GTALK_WHITELIST_USERS
  • HUBOT_GTALK_REGEXP_TRANSFORMATIONS

GTalk Username

This is the username (email) of the account your hubot will use to connect to GTalk. Make a note of it.

GTalk Password

This is the password of the account your hubot will use to connect to GTalk. Make a note of it.

GTalk Whitelist Domains

This is an optional comma separated list of domain names that hubot will automatically accept contact list requests from. Make a note of them if required.

GTalk Whitelist Users

This is an optional comma separated list of usernames that hubot will automatically accept contact list requests from. Make a note of them if required.

GTalk RegExp Transformations on Messages

Adds ability to transform messages using regexp. Format is: regexp|replacement. Example:

HUBOT_GTALK_REGEXP_TRANSFORMATIONS=".?: ?(.)|\$1"

Configuring the variables on Heroku

% heroku config:add HUBOT_GTALK_USERNAME="..."

% heroku config:add HUBOT_GTALK_PASSWORD="..."

Optional

% heroku config:add HUBOT_GTALK_WHITELIST_DOMAINS="...,..."

% heroku config:add HUBOT_GTALK_WHITELIST_USERS="...,..."

Configuring the variables on UNIX

% export HUBOT_GTALK_USERNAME="..."

% export HUBOT_GTALK_PASSWORD="..."

Optional

% export HUBOT_GTALK_WHITELIST_DOMAINS="...,..."

% export HUBOT_GTALK_WHITELIST_USERS="...,..."

Troubleshooting

StringPrep errors

If you see something like this:

Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'

don’t worry—StringPrep is not required for hubot-gtalk.

hubot-gtalk's People

Contributors

sapegin avatar atmos avatar mcollina avatar cofyc avatar ericentin avatar gaizka avatar technicalpickles avatar buritica avatar vogonistic avatar mvrilo avatar nvbn avatar

Watchers

Raul Torres avatar James Cloos avatar

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.