A demo Node.js Google Talk Botby Simon Holywell

Flattr this git repo

Try the demo

Add n.js.bot@gmail.com to your contacts to talk with the bot.

Hosted on cloudno.de.

Featured in .net Magazine

This bot was originally written alongside a tutorial article in .net Magazine for the March and April 2012 issues. I have now published this article on my blog as well:

In addition I wrote four short articles to also appear in the magazine:

Documentation

Bounce (b;)

This command causes the bot to echo back whatever you send it.

Example

Request
b;Hello my new bot friend!
Response
b;Hello my new bot friend!

Status (s;)

Allows you to update the bot's own instant messenger status

Example

Request
s;This is the bot's new status!
Response

The bot's status message will be updated as well as issuing the following response.

Status message now set to This is the bot's new status!

Twitter (t;)

Used to search Twitter for the supplied term. For Twitter search options please see Using the Twitter Search API

Example

Request
t;Rugby World Cup
Response

This command will return a status message and upto 5 results from the Twitter search API

Message 1
Searching twitter, please be patient...
Message 2
TiffannyJunee: @russiarugby doing it their way @ #RWC2011 See you in Nelson! :-) http://t.co/v0toiij5
Message 3
MotatauMarae: All Blacks thump France in Rugby World Cup; US preps for Italy clash: The All Blacks were simply unstoppabl... http://t.co/itlnTBWC (LT)
Message 4
SportSquareNews: Rugby World Cup 2011: Ireland victory pleases Kidney http://t.co/WME2ZaAA
Message 5
Bettor_rugby: World Cup preview: Namibia v Wales, Bettor.com http://t.co/5yTdXzXs
Message 6
PierreOlivierD: Marc Lièvremont defends decision to pick Morgan Parra at fly-half http://t.co/8jJLT5mH via @guardian