Created
March 23, 2010 17:44
-
-
Save charliek/341452 to your computer and use it in GitHub Desktop.
This file contains 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
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