Created
January 2, 2013 13:29
-
-
Save anonymous/4434590 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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