A bot for our office chat room.
Inspired by Zach Holman's post on Hubot - thanks :)
Some commands have their own dependencies, choose what you want to use.
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.
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.
- 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.
git clone http://github.com/grifo/florinda
to your favorite folder- run
npm install
- get a Wolfram Alpha API Key
- create a
config.json
file as shown below - configure a hook with the pattern @florinda
- point the POST URL to her public server address
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.
(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 :)