3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

More quotes docs updates [#351]

This commit is contained in:
reality 2013-05-17 17:57:21 +00:00
parent e8c2db5488
commit 449ad684ad

View File

@ -72,13 +72,20 @@ Merge two quote categories into one.
#### ~link [category]
Show a link to the page on the web interface which shows this category's quotes.
### Admin-only Commands
### API
#### getQuote(event, category)
Returns a random quote from the given category.
#### addQuote(key, quote, user, callback)
Add the given quote to the category stored under the given key. If it's a new
quote category, then the owner of the category will be recorded as the given
user. The callback is called with one argument, the new quote count of the given
category.
#### getQuote (key, callback)
Get a random quote from the given category. Callback is called with one
argument, either a random quote under the given key, or false if the category
doesn't exist. This getQuote function does not require a server argument, and as
such does not run the quote through the interpolation function (does not parse
~~category~~ etc).
### Removal Spam Protection