Drupal's IRC bot.module and Druplicon now support reminders

Every so often I'll ask Druplicon to remind me about something in the future, and then curse that I haven't yet written such functionality. Then everyone points and laughs at little ol' Morbus. Welp, NO MORE LAUGHING as that code has hit the CVS and Druplicon just now. From the integrated help: Reminders can be set with "BOTNAME: remind NICK (at|by|in|on) DURATION (about|how|that|to) MESSAGE". For example: "BOTNAME: remind Morbus in 1 hour and 6 minutes that his bot is awesome", "BOTNAME: remind me in 23 minutes to check my pot roast.", or even "BOTNAME: remind Monty on Wed, 12 May 2010 13:10:21 -0400 that this was when this code debuted."

Some examples:

<Morbus> Druplicon: remind me in 5 minutes to celebrate.
<Druplicon> Morbus: I'll remind you about that on Wed, 12 May 2010 13:32:55 -0400.
    (time passes)
<Druplicon> Morbus: You asked me to remind you to celebrate.

<EvanDonovan> Druplicon: remind me in 7 hours that I should still be working :(
<Druplicon> EvanDonovan: I'll remind you about that on Wed, 12 May 2010 20:17:34 -0400.

<Morbus> Druplicon: remind me by next week that this feature debuted!
<Druplicon> Morbus: I'll remind you about that on Wed, 19 May 2010 13:34:41 -0400.

Tags:

Comments

Has this hit Trellonicon yet?

Trellonicon is hosted on Trellon's servers, which I have no right to anymore. They'll have to upgrade themselves.

Would this work for a general announcement to the channel, rather than to a specific user?

Use case: During DrupalCon SF, I wanted to send a message to each of the channels dedicated to a session room a message. At five minute before each session ended, I wanted to remind everyone to fill out the session evaluation. I know that Druplicon wasn't active on those rooms during DCSF, but speaking hypothetically...

I ended up doing it manually, when I remembered to do so. Not too bad, but if Druplicon could do it for me, WIN!

Thanks for this functionality. Super cool!

The functionality does not test if the recipient exists (same with the similar "tell" functionality). You're welcome to do "remind everyone in 15 minutes that the session is starting". The bot will then say "everyone: ...". Naturally, it won't ping everyone in the channel by nick, but it will act like a mindless alerting service, yes.

Yay! I got featured in an example :)

Note that I misused the English language though because Druplicon says the reminder back literally. I should've said: "Druplicon: remind me in 7 hours that you should still be working :(" so I would be referring to myself in the sentence, not Druplicon.

Add new comment