Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

(initial)

  • Loading branch information...
commit 7ba7b89d8d5b0ee097d88774a4156e263a7548fe 0 parents
Fedor Indutny authored January 13, 2012
2  .gitignore
... ...
@@ -0,0 +1,2 @@
  1
+node_modules
  2
+npm-debug.log
14  lib/twss-bot.js
... ...
@@ -0,0 +1,14 @@
  1
+var twss = require('twss'),
  2
+    irc = require('irc'),
  3
+    nick = 'cpollack';
  4
+    channel = '#libuv';
  5
+
  6
+var client = new irc.Client('irc.freenode.net', nick, {
  7
+  channels : [ channel ]
  8
+});
  9
+
  10
+client.addListener('message' + channel, function(from, message) {
  11
+  if (twss.is(message)) {
  12
+    client.say(channel, 'That\'s what she said!!');
  13
+  }
  14
+});
10  package.json
... ...
@@ -0,0 +1,10 @@
  1
+{
  2
+  "name": "twss-bot",
  3
+  "version": "0.0.1",
  4
+  "description": "",
  5
+
  6
+  "dependencies": {
  7
+    "twss": "0.1.x",
  8
+    "irc": "0.3.x"
  9
+  }
  10
+}

0 notes on commit 7ba7b89

Please sign in to comment.
Something went wrong with that request. Please try again.