New additions to Drupal's IRC bot.module and Druplicon

I've added some new code to my Drupal IRC bot.module and Druplicon, the official Drupal IRC bot, is now running with these features. First up is feed aggregation: bot.module now integrates with aggregator.module to provide IRC announcements of new feed items. Feeds can be configured per channel or the items can be sent to multiple channels at once. If you run a channel on Freenode that currently has Druplicon and you'd like it to announce relevant news as it happens, don't hesitate to let me know.

A new bot_potpourri.module has been added, and its first feature is timezone display and conversion. From the integrated help: Display timezones with "BOTNAME: timezone BST". Convert timezones with "tz 10AM MST to EST" or "tz 14:27 UTC in Europe/London". Timestamps are allowed if combined and with no spaces: "tz 2010-10-23T10:00 EST to UTC". All returned dates are DST-aware.

Some examples:

<Morbus> find out what time it is somewhere:
<Morbus> Druplicon: tz EST
<Druplicon> 2010-05-11 12:05 EDT.

<Morbus> or convert from one timezone to another:
<Morbus> timezone 14:27 EST to Europe/London
<Druplicon> 2010-05-11 19:27 BST.
<Morbus> tz 10 A.M. America/New_York to MST
<Druplicon> 2010-05-11 08:00 MDT.
<Morbus> tz 6 pm EST in EST
<Druplicon> 2010-05-11 18:00 EDT.

<Morbus> or dates in the future. note that DST is always considered:
<Morbus> tz 2010-10-23T10:00 EST in UTC
<Druplicon> 2010-10-23 14:00 UTC.
<Morbus> timezone 2010-01-23T10:00 EST in UTC
<Druplicon> 2010-01-23 15:00 UTC.

I hope to squeeze in some more features later this week too.

Tags:

Comments

It is really great to see you working on bot again!

I was wondering, there is an interesting feature request for the bot queue here: http://drupal.org/node/239731. Not knowing about this issue beforehand I incorporated this into my bot_commit module (http://drupal.org/project/bot_commit), but it would be great to see it provided by the main bot module so I can cut out that part of the code. If I polish up this into a patch against bot, do you see a finite probability that it makes it in?

Yeah, the bot queue stuff will get in. I've just been busy scratching my own itches at the moment.

this is going to be really helpful for my team as well. muito obrigado Morbus.

How does this handle time zones where Daylight and Standard time are both used at the same time of year? Yes I'm looking at you MDT/MST?

Very awesome. We at LA Drupal are interested in getting our feeds set up in our #drupal-la IRC room. Will contact you with details, starting with our GDO RSS feed. ;)

Add new comment