Created
March 23, 2011 22:11
-
-
Save goofmint/884147 to your computer and use it in GitHub Desktop.
See Chat topic
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 'Skype' | |
Skype.init 'some application name' | |
Skype.start_messageloop | |
Skype::ChatMessage.set_notify do |chatmessage, property, value| | |
if chatmessage.get_chat.getTopic == "hogehoge" && value == 'RECEIVED' && property == :status | |
chatmessage.get_chat.send_message "Hei, someone said, #{chatmessage.get_body}!" | |
end | |
end | |
Skype.attach_wait | |
sleep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment