Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Chatbot for gtalk partychat (partychapp.appspot.com)
branch: master

This branch is even with grifo:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
commands
lib
.gitignore
README.md
brains.coffee
florinda.js
license.txt
package.json
server.coffee
system.coffee

README.md

Florinda

A bot for our office chat room.

Inspired by Zach Holman's post on Hubot - thanks :)

Dependencies

Some commands have their own dependencies, choose what you want to use.

Chat room

Currently it only interfaces with Party Chat (GTalk groups - http://partychapp.appspot.com) via partychat-hooks.appspot.com, but it'd be easy to turn it into an IRC or Jabber bot.

What can she do?

Remind you of coffee time:

Export from an SVN repository:

Set simple timers:

Search twitter:

Search Google Places:

Answer enthusiastically to interesting questions:

Any commands that don't match anything are sent to Wolfram Alpha as a last attempt.

Other commands

  • say blah in 10 seconds (for creeping out people)
  • print http://xxx.com/file.pdf (uses lpr/openoffice)
  • get someword from twitter
  • get 5 tweets from jamieoliver
  • get latest tweet by @zeldman
  • restart
  • reload (performs a git pull from this repo + restart)

New commands can be added to the /comands folder. Take a look at places.coffee for a simple example.

Installing

  1. git clone http://github.com/grifo/florinda to your favorite folder
  2. run npm install
  3. get a Wolfram Alpha API Key
  4. create a config.json file as shown below
  5. configure a hook with the pattern @florinda
  6. point the POST URL to her public server address
  7. forever start florinda.js -vs (will run on port 3333 by default)

Alternatively you can run it on the command-line with node florinda.js --cli without setting a webhook.

node florinda.js --help will show you all available options.

config.json

(defaults needed for the bundled commands)

{
    "key": "supersecretkey",
    "messageURL": "http://partychat-hooks.appspot.com/post/p_xxxx",
    "wolfram": {
        "apiKey":"1A2B3C"
    },
    "svn": {
        "username": "user",
        "password": "12345",
        "url": "192.168.1.99",
        "path": "/var/www/clients",
        "public": "mydomain.com"
    }
}

Siga @grifotecnologia e @ricardobeat no twitter :)

Something went wrong with that request. Please try again.