Codex

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

User:Westi/wpbot

This article is a ROUGH DRAFT. The author is still working on this document, so please do not edit this without the author's permission. The content within this article may not yet be verified or valid. This information is subject to change.

About / History

wpbot is a JiBot and is based off of the svn code provided to me by termie on #wordpress. wpbot came about to replace _infobot which was killed off by infowolfe following abuse.

Originally there was another JiBot called pressbot run by Matt who also ran another bot called wpbot.

I have extended the base JiBot with a few commands - most notably $codex which is based off the JiBot $wiki command and searches the codex.

Commands

All commands to wpbot work with either ? or $ as the command character e.g. $help or ?help.

Help

Sending $help/?help to wpbot in a PM will get you the following incomplete help.

<wpbot> wpbot - #Wordpress's bot - http://joi.ito.com/joiwiki/JiBot
<wpbot> Dictionary and user info: ?learn concept is definition || ?whois concept || ?whatis concept ||?forget
        concept is definition || ?forgetme
<wpbot> Technorati: ?info blog.com || ?last blog.com || ?cosmos blog.com || ?blogrep keywords
<wpbot> Google: ?google words
<wpbot> Wordpress Codex: ?codex words
<wpbot> Karma: nick++ || nick-- || ?karma nick || ?karma
<wpbot> Turn on or off heralding: ?herald

Definitons

wpbot supports defining of nicks and other terms. If you nick is defined them wpbot will say your definition when you join the channel (subject to a 10 minute throttle - you must not have been seen in the channel at least 10 minutes previously).

$def

<westi> $def westi is http://blog.ftwr.co.uk and wpbot's master
<wpbot> westi is http://blog.ftwr.co.uk and wpbot's master

$forget

<westi> $forget westi is http://blog.ftwr.co.uk and wpbot's master
<wpbot> I no longer know that westi is http://blog.ftwr.co.uk and wpbot's master

$forgetme

<westi> $forgetme westi is http://blog.ftwr.co.uk and wpbot's master
<wpbot> i have expunged westi from my mind

Karma

wpbot supports a simple karma tracking model tracking all ++ and -- of things/nicks. There is simple protection to stop you increasing you own karma

<westi> wpbot++
<westi> $karma wpbot
<wpbot> wpbot has 1 point
<westi> westi++
<wpbot> Nice try westi ;)


Codex