SkypeAPI

sample

require 'skypeapi'

SkypeAPI.init
SkypeAPI.start_messageloop
SkypeAPI::ChatMessage.set_notify do |chatmessage, property, value|
  if property == :status and value == 'RECEIVED'
    chatmessage.get_chat.send_message chatmessage.get_body
  end
end
SkypeAPI.attach_wait
sleep