Allow to use subject in response

sun - May 9, 2009 - 23:59
Project:Bot
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

To allow pointing people to online resources and do other shit, it would be great if one could use !subject in factoids.

Like:

Druplicon: explain is <reply>http://lmgtfy.com/?q=!subject
tha_sun: explain CRUD?
Druplicon: http://lmgtfy.com/?q=CRUD

I'm not entirely sure whether attached patch is correct, but it might work as starting point.

AttachmentSize
bot-DRUPAL-6--1.subject.patch914 bytes

#1

Morbus Iff - May 10, 2009 - 02:54

Theoretically a duplicate of http://drupal.org/node/316340, but I'll leave both open until I can look at this patch a bit more. I like the feature/idea.

#2

Gurpartap Singh - May 30, 2009 - 18:42

after lmgfy.com the next big benefit is...

Gurpartap: support Morbus?
Druplicon: Morbus: #drupal is for all questions about code and also about everything pertaining to drupal.org and the Drupal community at large (advocacy, marketing, infrastructure etc.). Other questions should be asked in #drupal-support or on the drupal.org forums. Make sure you read http://blog.freenode.net/?p=77 first.

Gurpartap: Morbus: ^

...instead of the more than often usage of ^ to instruct the addressee to read the upper line.

Maybe this kind of user addressing could altogether go into a separate feature, where it could support factoids as well as api functions, like:

Gurpartap: hook_nodeapi @ Morbus?
Druplicon: Morbus: hook_nodeapi: Act on nodes defined by other modules. => hook_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) => http://api.drupal.org/api/function/hook_nodeapi/6

Would be a big relief!

#3

Morbus Iff - May 30, 2009 - 21:58

That already exists privately, Gurpartap:

"tell Gurpartap about support"

would PM the factoid to the user.

#4

Gurpartap Singh - May 30, 2009 - 22:03

Just for factoids, and most newbies aren't registered or they just don't see a red window jumping around asking them to read something. :(

#5

Morbus Iff - May 30, 2009 - 22:07

Gotcha. I'd agree to such a feature, I think, though I'd support both @ (at Morbus), |, and > and >>, I think (to mimick command line mentalities of pipes and redirection).

#6

sun - May 30, 2009 - 22:54

Naturally, I would try to use

tha_sun:   Morbus: support?
Druplicon: Morbus: #drupal is all...

That's a bit different from what I proposed with !subject being usable as token within factoids.

#7

Morbus Iff - May 30, 2009 - 23:09

Sun: I think that one would be a little too error prone. Consider:

sun: eh?
litwol: argh!
webchick: woohoo!
etc.

Granted, all those are exclamations, but it's pretty hardcoded in a lot of people to prefix their own comments with the user to whom it's directed, with no intent of bot interjection. Granted, it could create some humorous situations and, granted, it would certainly be useful as we're talking about here, but I fear that the ratio of bot usefulness vs. annoyance would be too high...

 
 

Drupal is a registered trademark of Dries Buytaert.