Permalink
Browse files

(initial)

  • Loading branch information...
0 parents commit 7ba7b89d8d5b0ee097d88774a4156e263a7548fe @indutny committed Jan 13, 2012
Showing with 26 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +14 −0 lib/twss-bot.js
  3. +10 −0 package.json
@@ -0,0 +1,2 @@
+node_modules
+npm-debug.log
@@ -0,0 +1,14 @@
+var twss = require('twss'),
+ irc = require('irc'),
+ nick = 'cpollack';
+ channel = '#libuv';
+
+var client = new irc.Client('irc.freenode.net', nick, {
+ channels : [ channel ]
+});
+
+client.addListener('message' + channel, function(from, message) {
+ if (twss.is(message)) {
+ client.say(channel, 'That\'s what she said!!');
+ }
+});
@@ -0,0 +1,10 @@
+{
+ "name": "twss-bot",
+ "version": "0.0.1",
+ "description": "",
+
+ "dependencies": {
+ "twss": "0.1.x",
+ "irc": "0.3.x"
+ }
+}

0 comments on commit 7ba7b89

Please sign in to comment.