ZofBot Commands Syntax Rundown

Channel trigger syntax

].+
Database factoid trigger. Also known as trigger, i.e. double trigger would mean two of these.
<Zoffix> ]css
<_ZofBot3> CSS: http://w3.org/Style/CSS/
If a specified command does not exist in the database the bot notices with a a message.
<Zoffix> ]foo
-_ZofBot3- Cancelled send: Nothing was found. Try searching http://xrl.us/wcdx
]].+
Google search trigger.
<Zoffix> ]]foo
&ly;_ZofBot3> [Google] http://en.wikipedia.org/wiki/Foo (More results: http://tinyurl.com/3exk76 )
]]i:.+
Google image search trigger
<Zoffix> ]]i:foo
<_ZofBot3> [Google - Images] http://www.gutlessbrewers.com/other/foo-color.jpg (More results: http://tinyurl.com/2xgefn )
]]c:.+
Google code search trigger
<Zoffix> ]]c:foo
<_ZofBot3> [Google - Code] http://tinyurl.com/2vl5l6 [foo.c]-[C] (More results: http://tinyurl.com/2hgazn )
]]\d+:.+
Google search result number trigger where \d+ is a number. Works for regular, image and code searches.
<Zoffix> ]]1:foo
<_ZofBot3> [Google] http://en.wikipedia.org/wiki/Foo_Camp (More results: http://tinyurl.com/3exk76 )
<Zoffix> ]]2:foo
<_ZofBot3> [Google] http://www.foofighters.com/ (More results: http://tinyurl.com/3exk76 )
<Zoffix> ]]3:foo
<_ZofBot3> [Google] http://catb.org/jargon/html/F/foo.html (More results: http://tinyurl.com/3exk76 )
<Zoffix> ]]3:i:foo
<_ZofBot3> [Google - Images] http://www.riccifoundation.org/images/MeiYiFoo_2005.jpg (More results: http://tinyurl.com/2xgefn )
<Zoffix> ]]2:c:foo
<_ZofBot3> [Google - Code] http://tinyurl.com/26rbrd [?displaytype=print;node_id=373839]-[Java] (More results: http://tinyurl.com/2hgazn )
Google Syntax
All Google search queries accept regular google search syntax expressions
<Zoffix> ]]c:foo lang:Perl
<_ZofBot3> [Google - Code] http://tinyurl.com/26nnfh [common-req.t]-[Perl] (More results: http://tinyurl.com/32xdkg )
<Zoffix> ]]c:foo site:codemonkeys.org
<_ZofBot3> [Google - Code] Nothing was found (More results: http://tinyurl.com/29c83k )
<Zoffix> ]]foo site:codemonkeys.org
<_ZofBot3> [Google] Nothing was found (More results: http://tinyurl.com/ytwoq6 )
<Zoffix> ]]host site:glowhost.com
<_ZofBot3> [Google] http://www.glowhost.com/ (More results: http://tinyurl.com/yrpqjk )
]]].+
Browser support query.
<Zoffix> ]]]css3
<_ZofBot3> CSS 3 changes http://www.webdevout.net/browser-support-css#css3standards 
(IE 6:9.859%) (IE 7:12.758%) (FF 1.5:24.499%) (FF 2:24.499%) (Opera 8.5:7.552%) (Opera 9:19.36%) (Konqueror 3.5: ?) (Safari 2: ?))
<Zoffix> ]]]display: block
<_ZofBot3> block http://www.webdevout.net/browser-support-css#support-css2propsbasic-display 
(IE 6: I)(IE 7: I)(FF 1.5: Y) (FF 2: Y) (Opera 8.5: Y) (Opera 9: Y) (Konqueror 3.5: Y) (Safari 2: )
<Zoffix> ]]]abbr
<[ZofBansha]> abbr http://www.webdevout.net/browser-support-html#support-html401-abbr
(IE 6:50%) (IE 7:87.5%) (FF 1.5:96.875%) (FF 2:96.875%) (Opera 8.5:84.375%) (Opera 9:84.375%)
(Konqueror 3.5: ?) (Safari 2: ?))
@(\d+|url)?
Validation. When used as a single @ symbol validates the last URL that the bot saw in the channel. If a number follows as in @2 validates that link number that appeared in the channel, i.e. @1 validates second last, @2 validates one before that, etc. Current limit is to store six links, thus the maximum is @5. When the at-sign (@) is followed by a URL bot validates that URL. URL must begin with either http://, https:// or www.. When the link number for validation is used URL syntax rules are not that strict (more URLs get grabbed).
<Zoffix> http://yandex.ru
<Zoffix> http://zoffix.com
<Zoffix> http://haslayout.net
<Zoffix> @
<Zoffix> @2
<_ZofBot3> (haslayout.net) HTML: Valid ( http://tinyurl.com/2e9jmw ) | 
CSS: Valid [134 warnings] ( http://tinyurl.com/3d4xc2 ) | DOCTYPE: HTML 4.01 
Strict + url | (MIME: text/html, text/html; charset=utf-8)
<_ZofBot3> (yandex.ru) HTML: Valid ( http://tinyurl.com/2ehd3l ) | CSS: 
Valid [56 warnings] ( http://tinyurl.com/ytrrhy ) | DOCTYPE: HTML 4.01 Trans | 
(MIME: text/html; charset=windows-1251)
<Zoffix> @http://microsoft.com
<_ZofBot3> (microsoft.com) HTML: Failed (9 errors, see http://tinyurl.com/2eaxjl )
| CSS: Failed (68 errors, see http://tinyurl.com/362x7g ) [104 warnings] | 
DOCTYPE: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> | (MIME: text/html; charset=utf-8, 
text/html; charset=utf-16, text/html; charset=utf-8)
$(\d+|url)?
Doctype grabber. Same syntax as for validation above except that a dollar sign ($) is used instead of at-sign (@).
<Zoffix> http://yandex.ru
<Zoffix> http://zoffix.com
<Zoffix> http://haslayout.net
<Zoffix> $
<_ZofBot3> (haslayout.net) <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> (MIME: text/html, text/html; charset=utf-8)
<Zoffix> $2
<_ZofBot3> (yandex.ru) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> (MIME: text/html; charset=windows-1251)
<Zoffix> $http://google.com
<_ZofBot3> (google.com) NO DOCTYPE Found (MIME: text/html; charset=ISO-8859-1, text/html; charset=ISO-8859-1)
]define
Dictionary lookup
<Zoffix> ]define foo
<_ZofBot3> foo [jargon:13] foo /foo/
[jargon:13] is the dictionary used and the total number of results for that query.
]define .+:\d+
Dictionary result number where .+ is the term searched for and \d+ us the result number wanted.
<Zoffix> ]define foo:1
<_ZofBot3> foo [jargon:13] 1. interj. Term of disgust.
<Zoffix> ]define foo:2
<_ZofBot3> foo [jargon:13] 2. [very common] Used very generally as a sample 
name for absolutely anything, esp. programs and files (esp. scratch files).
<Zoffix> ]define foo:3
<_ZofBot3> foo [jargon:13] 3. First on the standard list of {metasyntactic variable}s 
used in syntax examples. See also {bar}, {baz}, {qux}, {quux}, {garply}, {waldo}, {fred}, 
{plugh}, {xyzzy}, {thud}.
]define dict|.+(:\d+)?
Dictionary lookup with a specific dicionary where dict is the dictionary name, .+ is the term looked for and (:\d+)? is an optional result number.
See addressed commands for a command to lookup dictionaries available.
Result number can also be used
<Zoffix> ]define gcide|stuff
<_ZofBot3> stuff [gcide:36] Stuff \Stuff\, n. [OF. estoffe, F. ['e]toffe; of 
uncertain origin, perhaps of Teutonic origin and akin to E. stop, v.t. 
Cf. {Stuff}, v. t.] 1. Material which is to be worked up in any process of manufacture. [1913 Webster]
<Zoffix> ]define gcide|stuff:1
<_ZofBot3> stuff [gcide:36] For the stuff they had was sufficient for all the 
work to make it, and too much. --Ex. xxxvi. 7. [1913 Webster]
<Zoffix> ]define gcide|stuff:3
<_ZofBot3> stuff [gcide:36] The workman on his stuff his skill doth show, And 
yet the stuff gives not the man his skill. --Sir J. Davies. [1913 Webster]
]urban .+(:\d+)?
UrbanDictionary.com lookup where .+ is the searched term and (:\d+)? is an optional result number.
<Zoffix> ]urban foo
<[ZofBansha]> [foo] A contracted version of the word 'fool'. 
The word origionated with Mr.T. Due to the extended contact with cheap substitute
 gold, he can no longer tell the difference between anybody he meets. In order to save 
himself the humiliation of asking who he's talking to, he simply refers to 
anyone and every one as 'foo' or 'sucka'. ( http://www.urbandictionary.com/define.php?term=Foo&defid=78594 )
<Zoffix> ]urban foo:1
<[ZofBansha]> [foo] An term used for unimportant variables in programming 
when the programmer is too lazy to think of an actual name. The origin of such 
word is described in detail in [RFC] 3092. 
( http://www.urbandictionary.com/define.php?term=foo&defid=765064 )
]urbanex(ample)? .+(:\d+)?
UrbanDictionary.com lookup except the return is the usage example not the definition. Result number trigger also works.
<Zoffix> ]urbanex foo
<[ZofBansha]> [foo] "You crazy foo!" "Dial 1-800-COLLECT, foo!" ( http://www.urbandictionary.com/define.php?term=Foo&defid=78594 )
<Zoffix> ]urbanexample foo:1
<[ZofBansha]> [foo] int foo; foo = 2 + 2; cout << foo; ( http://www.urbandictionary.com/define.php?term=foo&defid=765064 )
]urban(?:ur(?:i|l)|link) .+(:\d+)?
UrbanDictionary.com lookup except the return is only the link to the definition. Result number trigger also works.
<Zoffix> ]urbanurl foo
<[ZofBansha]> [foo] http://www.urbandictionary.com/define.php?term=Foo&defid=78594
<Zoffix> ]urbanuri foo:1
<[ZofBansha]> [foo] http://www.urbandictionary.com/define.php?term=foo&defid=765064
<Zoffix> ]urbanlink foo:2
<[ZofBansha]> [foo] http://www.urbandictionary.com/define.php?term=foo&defid=1073697
]urbanhelp
UrbanDictionary.com command syntax help.
<Zoffix> ]urbanhelp
<[ZofBansha]> /^]urban/ | /^ex(?:ample)?\s*/ | /^(?:ur(?:i|l)|link)/

Addressed Commands

These commands are triggered by addressing the bot by its name.

dict list
List of dictionaries for dictionary lookup function with their descriptions.
<Zoffix> _ZofBot3, dict list
<_ZofBot3> [jargon - Jargon File (4.4.4, 14 Aug 2003)][gcide - The Collaborative 
International Dictionary of English v.0.48][vera - V.E.R.A. -- Virtual Entity of Relevant 
Acronyms (June 2006)][gaz - U.S. Gazetteer (1990)][hitchcock - Hitchcock's Bible Names 
Dictionary (late 1800's)][gaz2k-places - U.S. Gazetteer Places (2000)][moby-thesaurus - 
Moby Thesaurus II by Grady Ward, 1.0][gaz2k-zip...
dict list short
Same as above except returns a short list of just dictionary names without descriptions.
<Zoffix> _ZofBot3, dict list short
<_ZofBot3> [jargon][gcide][vera][gaz][hitchcock][gaz2k-places][moby-thesaurus][gaz2k-zips][gaz2k-counties]
utf
Converts text into its UTF-8 version or some such.
<Zoffix> [ZofBansha], utf foo
<[ZofBansha]> foo
tohtml
Converts a piece of text into HTML entities. This is semi-broken and will be worked on in the future.
<Zoffix> [ZofBansha], tohtml <moo>
<[ZofBansha]> &#60;&#109;&#111;&#111;&#62;
fromhtml
This the counterpart for tohtml command, converts a piece of HTML entities back to normal text.
<Zoffix> [ZofBansha], fromhtml &#60;&#109;&#111;&#111;&#62;
<[ZofBansha]> <moo>
color (.+|#[[:xdigit:]])
Color lookup, where the argument is either .+ which is the color name or #[[:xdigit:]] which is a hexadecimal color code. Three digit form is accepted, in fact you can even give the bot four or five digits and it will try to find the closest matches.
<Zoffix> [ZofBansha], color #fff
<[ZofBansha]> [Snow: #FFFAFA][Floral white: #FFFAF0][Lavender blush: #FFF0F5]
[Sea shell: #FFF5EE][Cornsilk:  #FFF8DC][Yellow: #FFFF00][Lemon chiffon: #FFFACD]
[Ivory: #FFFFF0][Light yellow: #FFFFE0][White: #FFFFFF]
<Zoffix> [ZofBansha], color #ffff
<[ZofBansha]> [Yellow: #FFFF00][Ivory: #FFFFF0][Light yellow: #FFFFE0][White: #FFFFFF]
<Zoffix> [ZofBansha], color #fffff
<[ZofBansha]> [Ivory: #FFFFF0][White: #FFFFFF]
<Zoffix> [ZofBansha], color #ffffff
<[ZofBansha]> [White: #FFFFFF]
<Zoffix> [ZofBansha], color black
<[ZofBansha]> [Black: #000000]
<Zoffix> [ZofBansha], color red
<[ZofBansha]> [Indian red: #CD5C5C][Dark red: #8B0000][Red: #FF0000][Pale violet red: #DB7093][Orange red: #FF4500][Medium violet red: #C71585]
topic( channel_name)?
Returns the topic of channel_name channel or the current channel if channel_name is omitted. Useful in conjunction with output redirection. Returns only topics of channels the bot is on!
<Zoffix> [ZofBansha], topic
<[ZofBansha]> Topic for #zofbot is: Trigger is ']' | Searching instructions:
 http://zofbot.zoffix.com/database.shtml#dbSearch | $http://link.com grabs 
 doctype | @http://link.com validates | make sure to prefix link with http:// | 
 Bot's manual: http://zofbot.zoffix.com (work in progress, excuse the mess) 
 [set by Zoffix on Tue Apr 17 05:24:45 2007
<Zoffix> [ZofBansha], topic #zofbot3
<[ZofBansha]> ZofBot's testing channel [set by Zoffix on Mon Aug 20 08:35:19 2007
stats?(\s+\d+(\s+\d+)?)?
Returns browser market share statistics, first \d+ is the month number second \d+ is the year number. If year is omitted current year is used if month is omitted month previous to the current is used because stats for current month are usually not there yet.
<Zoffix> [ZofBansha], stat
<[ZofBansha]> [June 2007] MSIE 6.0: 46.21% | MSIE 7.0: 32.02% | FF 2.0: 11.07% 
| Saf 41: 3.57% | FF 1.5: 2.85% | O 9.x: 0.90% | FF 1.0: 0.60% | Saf 31: 0.60% |
 NS 6.0: 0.42% | MSIE 5.0: 0.23% | NS 7.0: 0.22% | MSIE 5.5: 0.21% | Saf 3.0: 0.18% 
 | NS 8.0: 0.16% | O Mini 3.1: 0.10% | Moz 1.7: 0.09% | Unknown: 0.09% | O Mini 2.0: 0.06%
 | Saf 52: 0.04% | Microsoft Pocket IE 4.0: 0.04% | Saf on Windows 3.0: 0.04% |...
<Zoffix> [ZofBansha], stats 2
<[ZofBansha]> [February 2007] MSIE 6.0: 49.35% | MSIE 7.0: 29.12% | 
FF 2.0: 7.80% | FF 1.5: 5.38% | Saf 41: 3.91% | FF 1.0: 0.96% | Saf 31: 0.82% | 
O 9.x: 0.65% | MSIE 5.0: 0.35% | NS 7.0: 0.32% | MSIE 5.5: 0.30% | NS 6.0: 0.24% | 
NS 8.0: 0.19% | Moz 1.7: 0.12% | O 8.x: 0.11% | Saf 85: 0.05% | Saf 12: 0.05% | 
Moz: 0.04% | O 7.x: 0.03% | Microsoft Pocket IE 4.0: 0.03% | FF 0.1: 0.02% | 
DWB 5.0: 0.02% | PSP: 0...
<Zoffix> [ZofBansha], stats 2 2006
<[ZofBansha]> [February 2006] MSIE 6.0: 82.60% | FF 1.5: 5.09% | 
FF 1.0: 4.50% | Saf 41: 1.83% | MSIE 5.0: 1.21% | Saf 31: 1.03% | MSIE 5.5: 0.97% | 
NS 7.0: 0.67% | O 8.x: 0.43% | Moz 1.7: 0.25% | NS 8.0: 0.25% | MSIE 7.0: 0.20% | 
NS 6.0: 0.17% | Saf 12: 0.14% | Saf 85: 0.10% | FF 0.1: 0.09% | O 7.x: 0.08% | Moz: 0.04% 
| FF 0.9: 0.03% | Moz 1.6: 0.03% | MSIE 4.0: 0.02% | O 9.x: 0.02% | FF 1.4: 0.02% | FF 0.8...