Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v0.1.2
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (17 sloc) 0.571 kB
#!/usr/bin/env ruby
# -*- ruby -*-
require 'rubygems'
require File.dirname(__FILE__) + '/lib/pelvis'
require 'pelvis/protocols/xmpp'
require File.dirname(__FILE__) + '/examples/actors/herault'
require File.dirname(__FILE__) + '/examples/actors/randomz'
if ENV["DEBUGGER"]
Pelvis.logger.level = Logger::DEBUG
Blather::LOG.level = Logger::DEBUG
end
EM.run do
Pelvis.connect(:xmpp, :jid => "herault@localhost/agent", :password => "testing", :advertise => false) do |agent|
agent.add_actor Herault
agent.on_advertised { puts "herault is ready" }
end
end
Jump to Line
Something went wrong with that request. Please try again.