forked from GitHub/dbot
get password from config file
This commit is contained in:
parent
8726c87c23
commit
365ef7d5fc
12
run.js
12
run.js
@ -11,15 +11,17 @@ var DBot = function(dModules, timers) {
|
|||||||
|
|
||||||
this.admin = this.config.admin || 'reality';
|
this.admin = this.config.admin || 'reality';
|
||||||
this.name = this.config.name || 'depressionbot';
|
this.name = this.config.name || 'depressionbot';
|
||||||
|
this.password = this.config.password || 'lolturtles';
|
||||||
|
|
||||||
this.timers = timers.create();
|
this.timers = timers.create();
|
||||||
this.waitingForKarma = false;
|
this.waitingForKarma = false;
|
||||||
|
|
||||||
this.instance = jsbot.createJSBot(this.name, 'elara.ivixor.net', 6667, this, function() {
|
this.instance = jsbot.createJSBot(this.name, 'elara.ivixor.net', 6667, this, this.password,
|
||||||
if(this.config.hasOwnProperty('channels')) {
|
function() {
|
||||||
this.config.channels.each(function(channel) {
|
if(this.config.hasOwnProperty('channels')) {
|
||||||
this.instance.join(channel);
|
this.config.channels.each(function(channel) {
|
||||||
}.bind(this));
|
this.instance.join(channel);
|
||||||
|
}.bind(this));
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user