I would suggest clarifying the factoid examples on the project page, to something like:

***
Set factoids with the following patterns:

  • BOTNAME: Drupal is great. yields reply "Drupal is great" when typing "Drupal?"
  • BOTNAME: Drupal is also powerful yields reply "Drupal is great and is also powerful" when typing "Drupal?" (assuming that the first factoid example is also set)
  • BOTNAME: Test is <reply>It works. yields reply "It works." when typing "Test?"
  • BOTNAME: cheer is <action>cheers for !who in !channel! yields reply "BOTNAME cheers for YOURNICK in YOURCHANNEL" when typing "BOTNAME: cheer!".

Factoids can be private messaged to a user by BOTNAME: tell newb about support.
Factoids are unset with BOTNAME: forget test.
***

I don't really know how to interpret the "Browsable at " in the current description, but I think that line can be clarified as well. (How does the example.com relate to the IRC chat room?)

Thanks for this module!

Comments

itangalo’s picture

Oh, sorry – the "browsable at" was cut off. It should of course be "Browsable at <http://www.example.com/bot/factoid>".

morbus iff’s picture

Status: Active » Closed (won't fix)

Factoids are one of the bot's earliest features, and this is the first time that anyone has remarked that the documentation leaves something to be desired. The project page's documentation is based on the internal documentation in the bot, available from IRC itself with "BOTNAME: help?" As such, it has to be short and concise, else it'll run up against character length limits and split across two IRC lines. Marking "works for me", with the consideration that most any question served by this longer documentation can be similarly answered by just experimenting with a live bot in the first place. Thanks for the attempt!

itangalo’s picture

It was worth a try. :-)

rmiddle’s picture

Status: Closed (won't fix) » Active

I just ran into the same problem. I think the examples could use a face lift.

Thanks
Robert

morbus iff’s picture

Status: Active » Closed (won't fix)

An effortless +1 doesn't change my opinion.