From 4a1d5aa083163bb9528cf74a9c86aa3f98c5d333 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 25 May 2012 21:00:38 +0100 Subject: [PATCH] webPort default --- modules/web.js | 3 --- run.js | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/web.js b/modules/web.js index c11c516..c2bc7bf 100644 --- a/modules/web.js +++ b/modules/web.js @@ -1,9 +1,6 @@ var express = require('express'); -// Web interface module using the express framework var webInterface = function(dbot) { - var dbot = dbot; - var pub = 'public'; var app = express.createServer(); diff --git a/run.js b/run.js index 5a633ad..3b9fb68 100644 --- a/run.js +++ b/run.js @@ -55,6 +55,7 @@ var DBot = function(timers) { this.admin = this.config.admin || [ 'reality' ]; this.moduleNames = this.config.modules || [ 'ignore', 'admin', 'command', 'dice', 'js', 'kick', 'puns', 'quotes', 'spelling', 'youare' ]; this.language = this.config.language || 'english'; + this.webPort = this.config.webPort || 80; // It's the user's responsibility to fill this data structure up properly in // the config file. They can d-d-d-deal with it if they have problems.