var LastFmNode = require('./lib/lastfm').LastFmNode,
    repl = require('repl'),
    config = require('./config'),
    _ = require('underscore');

var echoHandler = function() {
    _(arguments).each(function(arg) {
        console.log(arg);
    });
};

var errorHandler = function(error) {
    console.log('Error: ' + error.message);
};

var quietHandler = function() { };

var _echoHandlers = {
    error: errorHandler,
    success: echoHandler,
    lastPlayed: echoHandler,
    nowPlaying: echoHandler,
    scrobbled: echoHandler,
    stoppedPlaying: echoHandler
};

var _quietHandlers = {
    error: errorHandler,
    success: quietHandler,
    lastPlayed: quietHandler,
    nowPlaying: quietHandler,
    scrobbled: quietHandler,
    stoppedPlaying: quietHandler
}

var lastfm = new LastFmNode({
    api_key: config.api_key,
    secret: config.secret
});

var context = repl.start().context;
context.lastfm = lastfm;
context._echoHandlers = _echoHandlers;
context._quietHandlers = _quietHandlers;

var LastFmNode = require('./lib/lastfm').LastFmNode,
    repl = require('repl'),
    config = require('./config'),
    _ = require('underscore');

var echoHandler = function() {
    _(arguments).each(function(arg) {
        console.log(arg);
    });
};

var errorHandler = function(error) {
    console.log('Error: ' + error.message);
};

var _echoHandlers = {
    error: errorHandler,
    success: echoHandler,
    lastPlayed: echoHandler,
    nowPlaying: echoHandler,
    scrobbled: echoHandler,
    stoppedPlaying: echoHandler
};

var lastfm = new LastFmNode({
    api_key: config.api_key,
    secret: config.secret
});

var context = repl.start().context;
context.lastfm = lastfm;
context._echoHandlers = _echoHandlers;

--- 
+++ 
@@ -13,8 +13,6 @@
     console.log('Error: ' + error.message);
 };
 
-var quietHandler = function() { };
-
 var _echoHandlers = {
     error: errorHandler,
     success: echoHandler,
@@ -24,15 +22,6 @@
     stoppedPlaying: echoHandler
 };
 
-var _quietHandlers = {
-    error: errorHandler,
-    success: quietHandler,
-    lastPlayed: quietHandler,
-    nowPlaying: quietHandler,
-    scrobbled: quietHandler,
-    stoppedPlaying: quietHandler
-}
-
 var lastfm = new LastFmNode({
     api_key: config.api_key,
     secret: config.secret
@@ -41,4 +30,3 @@
 var context = repl.start().context;
 context.lastfm = lastfm;
 context._echoHandlers = _echoHandlers;
-context._quietHandlers = _quietHandlers;
Add quieter handlers for repl
