webPort config option, default 443

This commit is contained in:
Psychedelic Squid 2012-03-10 18:21:50 +00:00
parent df33de486c
commit f136636093
2 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@ var webInterface = function(dbot) {
res.render('quotes', { 'name': dbot.name, 'quotes': dbot.db.quoteArrs[rCategory], locals: { 'url_regex': RegExp.prototype.url_regex() } }); res.render('quotes', { 'name': dbot.name, 'quotes': dbot.db.quoteArrs[rCategory], locals: { 'url_regex': RegExp.prototype.url_regex() } });
}); });
app.listen(443); app.listen(dbot.webPort);
return { return {
'onDestroy': function() { 'onDestroy': function() {

1
run.js
View File

@ -44,6 +44,7 @@ var DBot = function(timers) {
this.nickserv = this.config.nickserv || 'zippy'; this.nickserv = this.config.nickserv || 'zippy';
this.server = this.config.server || 'elara.ivixor.net'; this.server = this.config.server || 'elara.ivixor.net';
this.port = this.config.port || 6667; this.port = this.config.port || 6667;
this.webPort = this.config.webPort || 443;
this.moduleNames = this.config.modules || [ 'command', 'js', 'admin', 'kick', 'modehate', 'quotes', 'puns', 'spelling', 'web', 'youare' ]; this.moduleNames = this.config.modules || [ 'command', 'js', 'admin', 'kick', 'modehate', 'quotes', 'puns', 'spelling', 'web', 'youare' ];
this.timers = timers.create(); this.timers = timers.create();