#!/usr/bin/env ruby

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', '..', 'lib')

require 'skype'
require 'pp'

Skype.on(:chatmessage_received) do |chatmessage|
  chatmessage.chat do |chat|
    chatmessage.body do |body|
      chat.send_message(body)
    end
  end
end

Skype.attach
Skype.thread.join

#!/usr/bin/env ruby

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', '..', 'lib')

require 'skype'
require 'pp'

Skype.on(:chatmessage_received) do |chatmessage|
  chatmessage.chat do |chat|
    chatmessage.body do |body|
      chat.send_message(body)
    end
  end
end

Skype.attach.join

Simplify echo example once more
Simplify echo example once more
