Skip to content
Browse files

Added a script to just run herault via XMPP.

  • Loading branch information...
1 parent 289dae9 commit 8ae071cf11c0ae421c770f2e4d90d510af0d26bd Samuel Tesla committed May 26, 2009
Showing with 22 additions and 0 deletions.
  1. +22 −0 run_herault
View
22 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.
Something went wrong with that request. Please try again.