Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Documentation for a ruby gem to send xmpp messages with a gtalk account

Gtalk

A ruby gem to send xmpp messages with a gtalk account

installation

sudo gem install gtalk

setup

vim ~/.bashrc
export GTALK_LOGIN="me"
export GTALK_PASSWORD="pwd"                   #the following are optional
export GTALK_ME="me@gmail.com"                #for gtalk and gtalk_me
export GTALK_US="me@gmail.com,him@gmail.com"  #for gtalk_us
export GTALK_HEADER="["`hostname`"] "         #to prepend to any msg e.g the machine name
exec bash

usage

pry
require 'gtalk'

# notify yourself cf. ENV['GTALK_ME']
gtalk_me "test" or gtalk "another test"

# notify your team cf. ENV['GTALK_US']
gtalk_us "test"

# notify someone
gtalk_to "x@gmail.com", "test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment