forked from GitHub/dbot
update report slow
This commit is contained in:
parent
c5448080bf
commit
7e1818d875
@ -13,9 +13,15 @@ var report = function(dbot) {
|
|||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
_.each(ops, function(user) {
|
var i = 0;
|
||||||
dbot.say(server, user.name, message);
|
var notifyChannel = function(ops) {
|
||||||
}, this);
|
if(i >= ops.length) return;
|
||||||
|
dbot.say(server, ops[i].name, message);
|
||||||
|
setTimeout(function() {
|
||||||
|
i++; notifyChannel(ops);
|
||||||
|
}, 1000);
|
||||||
|
};
|
||||||
|
notifyChannel(ops);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user