Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created March 23, 2011 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/884147 to your computer and use it in GitHub Desktop.
Save goofmint/884147 to your computer and use it in GitHub Desktop.
See Chat topic
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