-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a script to just run herault via XMPP.
- Loading branch information
Samuel Tesla
committed
May 26, 2009
1 parent
289dae9
commit 8ae071c
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |