May 26

Jabber::Bot 1.1.1 is now available. This release includes a minor change to the listener thread that should improve CPU usage in some cases.

Some folks have directly or indirectly reported that Jabber::Bot tends to peg CPU usage at 100%. This is due to how the underlying Jabber::Simple framework handles incoming messages. Jabber::Bot 1.1.1 should alleviate these CPU usage pains in most cases.

Download:
jabber-bot-1.1.1.gem
jabber-bot-1.1.1.tar.gz

Comments

Kent Perrier

Connect to SSL encrypted Jabber server

I am new to ruby so if this is in the docs please point me there and I'll be on my way. How would my Jabber Bot connect to a Jabber server that requires an SSL connection?

Re: Connect to SSL encrypted Jabber server

Jabber::Bot strives to be a simple as possible, and so does not support SSL connections. If you need something more, XMPP4R may be more up your alley. It's a low-level Jabber library (which, incidentally, Jabber::Bot uses under the covers) offering far more flexibility.

What if i dont want the deliveries to be queued?

I notice that Bot.deliver queues the messages, what if i dont want that? Or, is there a way to check for the recipient's presence beforehand?

Further comments on this article have been disabled.