Skip to content
eboyjr edited this page Mar 3, 2012 · 4 revisions

Guide to oftn-bot

oftn-bot is a bot used in #oftn on irc.freenode.net which was created as a utility for The ΩF:∅ Foundation. It can store factoids for later retrieval.

Commands

!commands

Retrieves a list of current commands.
Usage: !commands

<eboyjr> !commands
<oftn-bot> eboyjr: Valid commands are: !commands, !countdown, !find, !forget, !g, !gh, !learn, !topic, !tweet

!countdown

Starts a quick 3-second timer. Usage: !countdown

12:00pm :00 <eboyjr> !countdown
12:00pm :01 <oftn-bot> 3...
12:00pm :02 <oftn-bot> 2...
12:00pm :03 <oftn-bot> 1...
12:00pm :04 <oftn-bot> Go!

!find

Performs a search of a factoid in the database.
Usage: !find <factoid>

<eboyjr> !find project
<oftn-bot> eboyjr: Found: projects, github, and suit-canvas-toolkit

!forget

Removes a factoid from the database.
Usage: !forget <factoid>

!g

Returns the first Google result for the query.
Usage: !g <query>

<eboyjr> !g v8 javascript engine
<oftn-bot> eboyjr: v8 - V8 JavaScript Engine - Google Project Hosting <http://code.google.com/p/v8/>

!gh

Outputs information for a GitHub account.
Usage: !gh <username>

<eboyjr> !gh eboyjr
<oftn-bot> eboyjr: Devin Samarin <[email protected]> | https://github.com/eboyjr | (United States) - Member since: Jul 32, 2009 - 5 public repos

!learn

Adds a factoid to the bot.
Usage: !learn <factoid> = <text>
Usage: !learn alias <factoid> = <factoid>
Usage: !learn <factoid> =~ s/<expression>/<replace>/<flags>

!tweet

Posts a message to the ΩF:∅ Foundation Twitter account. This is only available to board members.

<eboyjr> !tweet Attention board members: Our next meeting is on Friday, February 24, 2012 at 8:00 PM PST.
<oftn-bot> Tweet successful: https://twitter.com/oftn_foundation/status/172155414610329600

Factoids

The factoid system in ecmabot is designed to store simple key/value pairs. Accessing a factoid from the database is as simple as:

<eboyjr> !help
<oftn-bot> eboyjr: In order to get help, paste the relevant portions JavaScript in a pastebin (see !paste), and tell us 1) what you want to happen, 2) what is actually happening, and 3) any error messages you find (see !debug).

You can direct the responses of your command with the @ character, followed by a nick.

<phpman3000> HAI GUYS ... uh havin a bit of trubble with this script... i get TypeError: document.crateElenemt is not a function how do i fixx this??
<eboyjr> !spelling @ phpman3000
<oftn-bot> phpman3000: Spelling and capitalization are important in programming, unless you are using PHP.
Clone this wiki locally