Registered StackHub users may elect to receive email notifications whenever a new package version is released or a comment is posted on the forum.
There are 0 watchers.
Returns a list of joke categories ( Str
) available on the ICNDB. These may be used in limitTo
and exclude
options when retrieving a joke.
categories : afIcndbCategories()// --> ["explicit", "nerdy"]joke : afIcndbGet({ "limitTo" : ["nerdy"] }) joke : afIcndbGet({ "exclude" : ["explicit"] })
See http://www.icndb.com/api/ for details.
Returns a joke ( Dict
) from the Internet Chuck Norris Database (ICNDB).
jokeId
should be an Number, but if null
then a random joke is returned.
options
is a Dict
of options. If jokeId
is null
, then options
can also be passed as the first argument. Valid options are:
firstName (Str)
- a replacement for the name ChucklastName (Str)
- a replacement the name NorrislimitTo (Str[])
- a list of categories to limit the jokes toexclude (Str[])
- a list of categories to excludeThe returned Dict
contains the keys id (Number)
, joke (Str)
, and categories (Str[])
. Example:
joke : afIcndbGet(461)["joke"]// --> "Chuck Norris finished World of Warcraft."joke : afIcndbGet()["joke"]// --> "Love does not hurt. Chuck Norris does."joke : afIcndbGet({ "firstName" : "Emma", "lastName" : "Statham", "limitTo" : ["nerdy"] })["joke"]// --> "Emma Statham can install a 64 bit OS on 32 bit machines."
Since 0.0.4, if no exclude
or limitTo
options are defined then, to protect the innocent, explicit jokes are excluded.
See http://www.icndb.com/api/ for details.
Returns the number of jokes on the ICNDB.
noOfJokes : afIcndbNoOfJokes()// --> 546
See http://www.icndb.com/api/ for details.