fun.factoid

Exports functions for managing small snippets of keyword-based knowledge.

In addition to the exported functions, this module inserts a pre-hook which inspects all messages for keywords which match the stored factoids. Messages in the general format of a question which contain matching keywords trigger an automatic response from the bot with the stored factoid.

add-factoid

Description

Creates a new factoid of ``name`` on the current network with the given description. Descriptions are limited only by the restrictions of the current network.

Usage

<factoid name> "<description>"

Examples

(add-factoid perl "A language which looks the same before and after encryption.")

update-factoid

Description

Updates the description of the named factoid.

Usage

<factoid name> "<new description>"

Examples

(update-factoid perl "A fine and upstanding member of the interpreted languages ecosystem.")

remove-factoid

Description

Removes the named factoid.

Usage

<factoid name>

Examples

(remove-factoid perl)