'use strict';
var http = require('http');
var dispatcher = require('httpdispatcher');

function keepAlive(logger) {
  // Create HTTP service to let bot stay alive
  dispatcher.onGet('/', function(req, res) {
    res.writeHead(200, { 'Content-Type': 'text/json' });
    res.end('Awoo. :3');
    logger('info', 'Serving keepAlive page.');
  });

  dispatcher.onGet('/restart', function(req, res) {
    res.writeHead(200, { 'Content-Type': 'text/json' });
    res.end('Visit /restart/bot to reboot WolfBot. Make sure you really want to do this! ;w;');
    logger('info', 'Serving restart page.');
  });
  dispatcher.onGet('/restart/bot', function(req, res) {
    res.writeHead(200, { 'Content-Type': 'text/json' });
    res.end('Restarting WolfBot. Back in a moment~! >w<');
    logger('info', 'Serving restart page.');
    logger('warn', 'Restarting bot.');
    process.exit(0);
  });
  http.createServer(function(req, res) {
    logger('info', 'Starting keepAlive server.');
    dispatcher.dispatch(req, res);
  }).listen(process.env.PORT || 3000);
}

module.exports = {
  start: keepAlive
};

@@ -156,16 +156,64 @@
 y alive%0A
+  logger('info', 'Starting keepAlive server.');%0A
   dispat
@@ -610,32 +610,41 @@
 info', 'Serving 
+blocking 
 restart page.');
@@ -978,58 +978,8 @@
 ) %7B%0A
-    logger('info', 'Starting keepAlive server.');%0A
     

Change logging for keepalive page