webPort default

This commit is contained in:
Luke Slater 2012-05-25 21:00:38 +01:00
parent 13892f3a1f
commit 4a1d5aa083
2 changed files with 1 additions and 3 deletions

View File

@ -1,9 +1,6 @@
var express = require('express'); var express = require('express');
// Web interface module using the express framework
var webInterface = function(dbot) { var webInterface = function(dbot) {
var dbot = dbot;
var pub = 'public'; var pub = 'public';
var app = express.createServer(); var app = express.createServer();

1
run.js
View File

@ -55,6 +55,7 @@ var DBot = function(timers) {
this.admin = this.config.admin || [ 'reality' ]; this.admin = this.config.admin || [ 'reality' ];
this.moduleNames = this.config.modules || [ 'ignore', 'admin', 'command', 'dice', 'js', 'kick', 'puns', 'quotes', 'spelling', 'youare' ]; this.moduleNames = this.config.modules || [ 'ignore', 'admin', 'command', 'dice', 'js', 'kick', 'puns', 'quotes', 'spelling', 'youare' ];
this.language = this.config.language || 'english'; 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 // 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. // the config file. They can d-d-d-deal with it if they have problems.