Posted by Trejkaz
Wed, 19 Jan 2005 02:00:00 GMT
I’ve completed the reworking of my JEP-0050-compliant XMPP bot into JSO. Ad-hoc commands were relatively easy to implement, and I’ve done a bit of a better job of separating out the responsibilities in the new code.
ServiceDiscoveryManager maintains a mapping from node IDs to Discoverable objects, and it is the Discoverable’s job to populate the disco#items and disco#info responses as appropriate.
CommandManager maintains a mapping from command node to CommandHandler, and CommandHandlers are Discoverable, so you can discover commands. The CommandManager itself is also discoverable, in order for clients to discover the list of valid commands. I made the bot itself discoverable as well, and hooked the service discovery up so that discovery on the bot not only listed “commands” as a feature, but listed the child item for easier navigation. :-)
Read more...
Tags bot, jabber, software
Posted by Trejkaz
Fri, 14 Jan 2005 01:40:00 GMT
Since the prototype of my Jabber bot which I’ve been using to make weblog posts is doing quite well, I figured it was time to tidy it up and get everything in order.
Leaving Smack behind, I moved to using JSO, whose protocol support is a lot more comprehensive than Smack’s anyway. It took a while to bang everything together some kind of order, but I think I’m finally there.
I just need to port the Ad-hoc Command stuff over, which can’t be as hard as the query framework was. Then I need to build in the ability to easily extend the bot, and then I can just port over the weblog poster.
Tags bot, jabber, software
Posted by Trejkaz
Wed, 05 Jan 2005 01:41:00 GMT
This is my first test of posting weblog entries via Jabber.
The post, when received by the bot, will search for user snips with a JabberIDLabel which matches the sending JID. After finding any snips with this JID, it then looks for a SnipLabel called “Weblog” which points to the blog which should be posted to.
The bot then sets the user to each snip it found, and posts to the associated blog.
Users who don’t have permission to write to the associated blog will simply fail to post and should get back an error message to that effect. Users who (maliciously?) add another user’s JabberID to their own user snip might still cause issues
Tags jabber, meta, software
Posted by Trejkaz
Tue, 21 Dec 2004 01:44:00 GMT
I’m now into the start of my Xmas holidays, and I’ve decided that some of this spare time will be devoted to setting this site up properly.
First on the agenda I am working on some SnipSnap Extensions which I hope will make the site easier to work with and/or more interesting. The extensions for now are dealing with Jabber integration throughout the site.
Tags jabber, snipsnap, software
Posted by Trejkaz
Tue, 21 Dec 2004 01:44:00 GMT
I’m migrating all the Jabber accounts from jabber.xaoza.net to jabber.zim.net.au in the next week or so, in preparation for the potential removal of the xaoza.net domain.
One thing that this does for me which is actually pretty good, is that it cleans out my roster. Anyone who doesn’t respond to the new authorisation requests can just be deleted after a week or so
Tags jabber
Posted by Trejkaz
Sat, 18 Dec 2004 01:43:00 GMT
Recently spotted on the jadmin mailing lists:
Hello,
I have installed 2 Jabber Servers and I want interconnect themelves?
Can you help me ?
Do people get on the Sendmail or Postfix mailing lists, asking how to configure two mail servers to talk to each other?
If they don’t, why? Mail and instant messaging are very similar in this regard. All you need for two IM servers to talk is that the names resolve. All you need for two email servers to talk is that the names resolve. It isn’t fucking rocket science.
It’s clear that half the people who ask questions on this mailing list haven’t even read the documentation for what they’re trying to install, but what’s worse is that two servers will interconnect automatically without any special configuration. So perhaps this breed of idiot doesn’t even try to see if their configuration already works as expected.
People must have this expectation that Jabber is like IRC, and you have to manually configure which servers can connect to. Such a thing would only have ended up with a network like IRC
Tags jabber