Sha256: 02696658b1ef4cd486e4839650ae483ddb6751c3dd61e671a618d53e95f45377
Contents?: true
Size: 349 Bytes
Versions: 6
Compression:
Stored size: 349 Bytes
Contents
#!/usr/bin/env ruby require 'blather/client' require 'blather/client/pubsub' setup 'echo@jabber.local', 'echo' Blather::LOG.level = Logger::DEBUG message :chat?, :body => 'exit' do |m| say m.from, 'Exiting ...' shutdown end message :chat?, :body do |m| begin say m.from, eval(m.body) rescue => e say m.from, e.inspect end end
Version data entries
6 entries across 6 versions & 2 rubygems