From f309348e25bdf851efd33e4ab1bc5ba796cba2ed Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 22 Oct 2014 03:10:24 +0100 Subject: [PATCH] Update run.js --- run.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/run.js b/run.js index e8af57e..d900ed2 100644 --- a/run.js +++ b/run.js @@ -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);