Sha256: 39e4e3407912fcf8fb96088be3e9ae57a6fd685e9a422b6d744713243cc2f207

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift '../../lib'

require 'xmpp4r'
require 'xmpp4r/discovery'
require 'xmpp4r/muc/x/muc'

require 'adventuremuc'


#Jabber::debug = true

if ARGV.size != 3
  puts "Syntax: ./adventure.rb <JID> <Password> <Host>"
  puts "See README for further help"
  exit
end

muc = AdventureMUC.new(Jabber::JID.new(ARGV[0]), ARGV[1], ARGV[2])
muc.add_world('tower.xml')
muc.add_world('cube.xml')
Thread.stop

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gmcmillan-xmpp4r-0.6.2 data/doc/xmpp4r/examples/advanced/adventure/adventure.rb
gmcmillan-xmpp4r-0.6.1 data/doc/xmpp4r/examples/advanced/adventure/adventure.rb
gmcmillan-xmpp4r-0.6 data/doc/xmpp4r/examples/advanced/adventure/adventure.rb
gmcmillan-xmpp4r-0.5 data/doc/xmpp4r/examples/advanced/adventure/adventure.rb