forked from GitHub/dbot
different join
This commit is contained in:
parent
a057dbf85c
commit
5e039c814a
4
run.js
4
run.js
@ -17,9 +17,9 @@ var DBot = function(dModules, timers) {
|
|||||||
|
|
||||||
this.instance = jsbot.createJSBot(this.name, 'elara.ivixor.net', 6667, this, function() {
|
this.instance = jsbot.createJSBot(this.name, 'elara.ivixor.net', 6667, this, function() {
|
||||||
if(this.config.hasOwnProperty('channels')) {
|
if(this.config.hasOwnProperty('channels')) {
|
||||||
for(channel in this.config.channels) {
|
this.config.channels.each(function(channel) {
|
||||||
this.instance.join(channel);
|
this.instance.join(channel);
|
||||||
}
|
}.bind(this));
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user