Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2013 13:29
Show Gist options
  • Save anonymous/4434590 to your computer and use it in GitHub Desktop.
Save anonymous/4434590 to your computer and use it in GitHub Desktop.
jid = Jabber::JID.new('xxx@pvp.net/')
client = Jabber::Client.new(jid)
client.use_ssl = true
client.connect('chat.na1.lol.riotgames.com',5223)
client.auth('AIR_xxx')
#client.send(Jabber::Presence.new.set_show(:chat).set_status('Rails!'))
# Send an Instant Message.
body = 'TesT'
to_jid = Jabber::JID.new('xxx@pvp.net/')
message = Jabber::Message::new(to_jid, body).set_type(:normal)
client.send(message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment