Skip to content

#wmassdevs bot commands

The wmabot on the #wmassdevs channel on Freenode.net is an instance of Rbot, a chat bot written in Ruby. This bot was placed in the channel to make some tasks easier (it can do math and shorten URL’s) as well as to entertain. Currently, wmabot is running off a test server in Miles’ office.

The bot has a reasonable amount of functionality. You can get a full list of commands by asking it for help.

wmabot help

You can also ask for help on a particular topic.

wmabot help tinyurl

You can substitute an exclamation point (!) for the bot’s name.

!help

More information can be found on the Rbot website.

Listed below are some helpful commands.

Tell Us About Yourself…

The bot can remember some simple facts. To associate your real name with your nick, type:

wmabot cmiles74 is Miles

To get the value back, type:

wmabot cmiles74?

You can set any value, but prepend your nick to it. Someone else can use your nick to get the information back.

wmabot cmiles74_email is fake@fakemail.com

To search the keyword database, type:

wmabot keyword search cmiles74

All the information will be regurgitated.

Shortcuts

math _problem_
Evaluates the given problem, i.e “wmabot math 1+2″ returns “3″.

Channel Related

seen _nick_
Reports the last time the user with that nick was seen in the channel and the last thing they said.

urls _number of urls_
Returns the most recent URL’s seen in the channel. If no number is specified, the last five are returned.

RSS Feeds

rss add _handle_ _url_ _url type_
Adds the RSS feed with the URL and links it with the handle specified, url type is optional.

rss delete _handle_
Removes the RSS feed with the specified handle.

rss show _handle_
Display recent entries for the RSS feed with the specified handle.

rss list
List all RSS feeds.

rss watch _handle_ or rss watch _handle_ _url_ _url type_
Watches the RSS feed with the specified handle for changes. If the second form is used, the feed is added and then watched.

rss unwatch _handle_
Stops watching the RSS feed with the specified handle.

Quotes

addquote _text of quote_
Adds the quote to the quote database.

delquote _number of quote_
Remove the quote from the database.

getquote _number of quote_
Returns the quote with the specified number.

searchquote _regular expression_
Searches the quote database and returns quotes that match the expression.

topicquote _number of quote_
Sets the channel topic to the quote with the specified number. If no number is specified, a random quote is chosen.

countquote _regular expression_
Returns the number of quotes that match the given expresion.

whoquote _number of quote_
Returns the nick of the person who added the quote with the specified number.

whenquote _number of quote_
Returns the time when the quote with the specified number was added to the database.