Skip to content

Instantly share code, notes, and snippets.

@charliek
Created March 23, 2010 17:44
Show Gist options
  • Save charliek/341452 to your computer and use it in GitHub Desktop.
Save charliek/341452 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'net/toc'
def send_aol_message(user, message)
client = Net::TOC.new("notifier", "password")
client.connect
sleep 3
buddy = client.buddy_list.buddy_named(user)
buddy.send_im(message) if buddy.available?
sleep 3
client.disconnect
end
buddy = "to_notify"
msg = "Your message"
send_aol_message(buddy, msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment