forked from GitHub/dbot
idfk
This commit is contained in:
parent
884158c27e
commit
fdd3187c82
@ -10,12 +10,13 @@ var report = function(dbot) {
|
|||||||
|
|
||||||
this.internalAPI = {
|
this.internalAPI = {
|
||||||
'notify': function(server, users, message) {
|
'notify': function(server, users, message) {
|
||||||
|
console.log('called notify');
|
||||||
var count = 0;
|
var count = 0;
|
||||||
async.eachSeries(users, function(nick, next) {
|
async.eachSeries(users, function(nick, next) {
|
||||||
count++;
|
|
||||||
console.log(nick + ' ' + count);
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
dbot.say(server, nick, message);
|
count++
|
||||||
|
console.log(nick + ' ' + count);
|
||||||
|
//dbot.say(server, nick, message);
|
||||||
next();
|
next();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user