July 21, 2010

An Update on the Robot

Oops I stopped blogging again didn't I?

Well if I did it was to start working on my IRC bot, which is now finished. If you want to play with it, it's home is in ##Gambot on freenode.net I haven't yet created a help for it yet, and I need something to blog about, so let's go over the commands list shall we?


Public Commands -- anyone
!define -- This looks up the second argument in a database of acronyms and definitions I am slowly filling.

!math -- This executes the second argument with the ColdFusion Evaluate() function. Basically it serves two purposes. It can do math, and it can tell you the value of any variables the bot is currently processing.

!roulette -- This will let you (and some friends) play Russian roulette. It loads one random chamber in a virtual six shooter and each successive use of the !roulette command advances it by one.

!forum -- I have a database that logs Wesnoth forum posts as they come in. This command looks up the last post in a specific subforum (which you specify in argument two). It defaults to the experimental corner.

!task -- This looks up a specific task on GNA. It's rather slow unfortunately. I haven't tried giving the HTTP request its own thread yet.

!subscribe -- Allows you to subscribe for private notifications of the latest Wesnoth forum posts in a specific subforum, or comma separated list of them. You get the forum number from the "f=" url parameter when visiting said subforum. Example is that the link for Off Topic is http://forums.wesnoth.org/viewforum.php?f=11 so to subscribe to that you'd use !subscribe 11 .

!unsubscribe -- This undoes your subscription. Under the hood it subscribes you to forum 999 (which doesn't exist).

!about -- Provides you a little information about the bot.

!help -- Still a work in progress but it will provide help on all the commands the bot has along with examples.

Staff Commands -- myself or anyone with "wesnoth/developer" in their netmask
!op -- Makes argument three an operator in argument two.

!deop -- Removes operator from argument three in argument two.

!voice -- Voices argument three in argument two.

!devoice -- Devoices argument three in argument two. (Do you see the pattern yet?)

!quiet --

!unquiet --

!kick --

!invite --

!tell -- Tells argument two a message consisting of all the other arguments.

!do -- Does a CTCP action in argument two consisting of all the other arguments.

!notify -- Uses NOTICE on argument two. The notice consists of all the other arguments.

!join -- Joins argument two.

!part -- Parts argument two with a message consisting of argument three plus.

!setdefine -- Adds the acronym in argument two to the definition database with a meaning of all the other arguments.

!subscribe-channel -- This works like !subscribe except the current channel is subscribed.

!unsubscribe-channel -- This works like !unsubscribe except the current channel is unsubscribed.

Private Commands -- me only
!literal -- Sends arguments two plus as raw IRC. Example
Janebot: !literal PRIVMSG ##Gambot: Hello there channel.


!tweet -- Posts arguments two plus to my twitter account. Lets me know the length of all tweets and informs me if the tweet is too long.

Other Fun Stuff
The robot does respond to CTCP VERSION and PING requests.

It will respond to most basic ways of expressing greetings and thanks.

It will hug people on command.

It responds to a few conversation pieces such as "Tell me something I don't know". The conversation pieces don't work as a command though. You have to just say the message (don't include "Janebot:").

Nothing she does is case sensitive.

All of her commands work privately because "Janebot:" is prepended to them.

0 comments:

Post a Comment