Mar 24

Jabber::Bot 1.1.0 is now available. New in this release is support for Jabber presence, including presence (available, away, do not disturb, etc.), status messages, and priority. There are several other additions, changes and fixes in the full release history.

Comments

Error

Hello,

for some reason, if I try to start the bot I get the following:

/var/lib/gems/1.8/gems/xmpp4r-0.3/lib/xmpp4r/rexmladdons.rb:239:in expr': undefined method[]' for nil:NilClass (NoMethodError) from /var/lib/gems/1.8/gems/xmpp4r-0.3/lib/xmpp4r/rexmladdons.rb:201:in match' from /var/lib/gems/1.8/gems/xmpp4r-0.3/lib/xmpp4r/rexmladdons.rb:134:inparse' from /usr/lib/ruby/1.8/rexml/xpath.rb:53:in each' from /usr/lib/ruby/1.8/rexml/element.rb:934:ineach' from /usr/lib/ruby/1.8/rexml/element.rb:398:in each_element' from /var/lib/gems/1.8/gems/xmpp4r-0.3/lib/xmpp4r/rexmladdons.rb:35:infirst_element' from /var/lib/gems/1.8/gems/xmpp4r-0.3/lib/xmpp4r/rexmladdons.rb:21:in replace_element_text' from /var/lib/gems/1.8/gems/xmpp4r-0.3/lib/xmpp4r/presence.rb:171:instatus=' from /var/lib/gems/1.8/gems/xmpp4r-0.3/lib/xmpp4r/presence.rb:179:in set_status' from /var/lib/gems/1.8/gems/xmpp4r-0.3/lib/xmpp4r/presence.rb:23:ininitialize' from /var/lib/gems/1.8/gems/xmpp4r-simple-0.8.7/lib/xmpp4r-simple.rb:146:in new' from /var/lib/gems/1.8/gems/xmpp4r-simple-0.8.7/lib/xmpp4r-simple.rb:146:instatus' from /var/lib/gems/1.8/gems/xmpp4r-simple-0.8.7/lib/xmpp4r-simple.rb:90:in initialize' from /var/lib/gems/1.8/gems/jabber-bot-1.1.0/lib/jabber/bot.rb:197:innew' from /var/lib/gems/1.8/gems/jabber-bot-1.1.0/lib/jabber/bot.rb:197:in `connect' from ./lambdabot.rb:51

this error appears for all possible bot configurations.

Thank you for your help in advice!

It looks like the error is deep within the bowels of XMPP4R's REXML extensions. It looks like XMPP4R 0.3.1 was released just today, and one change that stands out is "Proper XML entitiy escaping for REXML text nodes. " Upgrading to the new version may solve the problem you're having.

MUC?

Hi Brett,

Neat stuff!!! Any plans for MUC support?

-Steve
Not at the moment. Though, you're not the first to ask. Jabber::Bot is meant to be dead simple. If there's enough demand and it's simple enough, I'll consider adding it. I've marked it as an enhancement request in the issue tracker.

No title

Yeah, the MUC support would be great :)
Anyways, thank you very much.
Post a comment

Basic XHTML (including links) is allowed, just don't try anything fishy. Your post will be auto-formatted unless you use your own <p> tags for formatting.

Please don't type anything here unless you're an evil robot:


And especially don't type anything here: