mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 20:22:39 +01:00
webPort config option, default 443
This commit is contained in:
parent
df33de486c
commit
f136636093
@ -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
1
run.js
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user