Skip to content

Commit

Permalink
Added a script to just run herault via XMPP.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Tesla committed May 26, 2009
1 parent 289dae9 commit 8ae071c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions run_herault
@@ -0,0 +1,22 @@
#!/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

0 comments on commit 8ae071c

Please sign in to comment.