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.
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.
The GTalk adapter requires only the following environment variables.
HUBOT_GTALK_USERNAME
(Should be full email address, e. g. octodog@gmail.com
)HUBOT_GTALK_PASSWORD
And the following are optional.
HUBOT_GTALK_WHITELIST_DOMAINS
HUBOT_GTALK_WHITELIST_USERS
HUBOT_GTALK_REGEXP_TRANSFORMATIONS
This is the username (email) of the account your hubot will use to connect to GTalk. Make a note of it.
This is the password of the account your hubot will use to connect to GTalk. Make a note of it.
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.
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.
Adds ability to transform messages using regexp. Format is: regexp|replacement
. Example:
HUBOT_GTALK_REGEXP_TRANSFORMATIONS=".?: ?(.)|\$1"
% 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="...,..."
% export HUBOT_GTALK_USERNAME="..."
% export HUBOT_GTALK_PASSWORD="..."
Optional
% export HUBOT_GTALK_WHITELIST_DOMAINS="...,..."
% export HUBOT_GTALK_WHITELIST_USERS="...,..."
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
.