3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

Update run.js

This commit is contained in:
Luke Slater 2014-10-22 03:10:24 +01:00
parent 977de65914
commit f309348e25

11
run.js
View File

@ -44,13 +44,10 @@ var DBot = function() {
this.instance.addConnection(name, server.server, server.port,
this.config.admin, function(event) {
var server = this.config.servers[event.server];
async.eachSeries(server.channels, function(channel, next) {
setTimeout(function() {
this.instance.join(event, channel);
next();
}.bind(this), 5000);
}.bind(this));
_.each(server.channels, function(channel) {
this.instance.join(event, channel);
}, this);
}.bind(this), server.nickserv, server.password);
}, this);