Permalink
Browse files

Make test.js layout easier to modify

  • Loading branch information...
1 parent 3c2e354 commit 6544d4f83c630d7f027f7cd1ec7f4ff9b8f0fa6d @martynsmith committed Oct 29, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 test.js
View
@@ -4,7 +4,14 @@ var irc = require('./lib/irc.js');
var util = require('util');
var color = require('ansi-color').set;
-var c = new irc.Client('irc.dollyfish.net.nz', 'nodebot', { channels: ['#test'] });
+var c = new irc.Client(
+ 'irc.dollyfish.net.nz',
+ 'nodebot',
+ {
+ channels: ['#test'],
+ //debug: true
+ }
+);
c.addListener('raw', function(message) { console.log('raw: ', message) });
c.addListener('error', function(message) { console.log(color('error: ', 'red'), message) });

0 comments on commit 6544d4f

Please sign in to comment.