Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User:Robert Deaton/IRC bots

  1. WordPress is filled with bots, but nobody seems to know who they are or what they're for, so here's a quick overview.

phenny

Definately the bot that's been around the longest, phenny has tons of useful features

Messages

Phenny can leave messages for someone to get later

<masquerade> phenny, tell ringmaster I need an example for my docs
<phenny> masquerade: I'll pass that on when ringmaster is around.
... some time later
<ringmaster> Hey!
<phenny> ringmaster: 13:37Z <masquerade> tell ringmaster I need an example for my docs

W3 Validator

Phenny can validate websites using validator.w3.org

<masquerade> .val http://codex.wordpress.org/
<phenny> http://codex.wordpress.org is Invalid (9 errors)

Google

Phenny can lookup results on google

<masquerade>.g wordpress
<phenny> wordpress: http://wordpress.org/

Meriam-Webster

Phenny can lookup a word in the Merriam-Webster dictionary.

<masquerade> .mw word
<phenny> Entry: word /'w&rd/, noun
<phenny> Entry: 1 a : something that is said b plural (1) : TALK, DISCOURSE <putting one's feelings into words> (2) : the text of a vocal musical composition c : a brief remark or conversation <wo [...]

WordNet

Phenny can also look up words in WordNet.

<masquerade> .w word
<phenny> word 1. a unit of language that native speakers can identify
<phenny> word 2. a brief statement
<phenny> word 3. new information about specific and timely events [...]

Others

For a full list of what phenny can do, visit http://inamidst.com/phenny/

error_bot

DNS Lookups

error_bot can check DNS and reverse DNS entries for you

<masquerade> error_bot, dns wordpress.org
<error_bot> masquerade: 70.84.29.148
<masquerade> error_bot, dns 70.84.29.148
<error_bot> masquerade: comox.textdrive.com

Codex Search

error_bot can search the codex, WordPress' documentation heaven

<masquerade> |codex Template Tags
<error_bot> masquerade: Search took 0.269377 seconds: Template Tags  WordPress Codex: <http://codex.wordpress.org/Template_Tags>; Stepping Into Template Tags  WordPress Codex: <http://codex.wordpress.org/Stepping_Into_Template_Tags>; Template Tags /list cats  WordPress Codex: <http://codex.wordpress.org/Template_Tags/list_cats>

Google

error_bot can also do google searches

<masquerade> error_bot, google wordpress codex
<error_bot> masquerade: Search took 0.316145 seconds: Main Page  WordPress Codex: <http://codex.wordpress.org/Main_Page>; Using Themes  WordPress Codex: <http://codex.wordpress.org/Using_Themes>; Taking Your Camera on the Road  WordPress Codex Cleanup Week: <http://www.cameraontheroad.com/?p=701>

Messages

Like phenny, error_bot can store messages for later

<masquerade> error_bot, tell ringmaster I need another example
<error_bot> masquerade: You want fries with that?

The message will be sent later in a PM.

Karma

error_bot can keep track of karma

Add Karma
<masquerade> karma++
Remove Karma
<masquerade> karma--
Check karma
<masquerade> |karma karma
<error_bot> masquerade: Karma for "karma" has been increased 1 time and decreased 1 time for a total karma of 0.

Weather

error_bot can look up US and international weather

<masquerade> error_bot, weather 19904
<error_bot> masquerade: The current temperature in Dover AFB, DE is 27C (80F). Conditions: Light Fog. Humidity: 88%. Wind: SW at 9 mph (14 km/h).
<masquerade> error_bot, weather Saint Peters, MO
<error_bot> masquerade: The current temperature in Saint Peters, MO is 19C (66F). Conditions: Cloudy. Humidity: 90%. Wind: N at 5 mph (8 km/h).
<masquerade> error_bot, weather Paris, France
<error_bot> masquerade: The current temperature in Paris, France is 21C (69F). Conditions: Thunderstorm. Humidity: 82%. Wind: ENE at 2 mph (3 km/h).

paste-it

Pastebin

paste-it will automatically alert the channel when you post content to the pastebin at http://pastebin.bafserv.com/wordpress.

paste-it "masquerade" at 68.33.239.27 pasted "For the IRC_Bots page" (1 line) at http://pastebin.bafserv.com/899