forked from GitHub/dbot
Update run.js
This commit is contained in:
parent
977de65914
commit
f309348e25
11
run.js
11
run.js
@ -44,13 +44,10 @@ var DBot = function() {
|
|||||||
this.instance.addConnection(name, server.server, server.port,
|
this.instance.addConnection(name, server.server, server.port,
|
||||||
this.config.admin, function(event) {
|
this.config.admin, function(event) {
|
||||||
var server = this.config.servers[event.server];
|
var server = this.config.servers[event.server];
|
||||||
|
|
||||||
async.eachSeries(server.channels, function(channel, next) {
|
_.each(server.channels, function(channel) {
|
||||||
setTimeout(function() {
|
this.instance.join(event, channel);
|
||||||
this.instance.join(event, channel);
|
}, this);
|
||||||
next();
|
|
||||||
}.bind(this), 5000);
|
|
||||||
}.bind(this));
|
|
||||||
}.bind(this), server.nickserv, server.password);
|
}.bind(this), server.nickserv, server.password);
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user