mirror of
https://github.com/reality/dbot.git
synced 2025-01-11 20:42:37 +01:00
i actually am an idiot
This commit is contained in:
parent
4aa2c05989
commit
b8e3f13816
@ -302,7 +302,9 @@ var commands = function(dbot) {
|
|||||||
if(host) {
|
if(host) {
|
||||||
var results = [];
|
var results = [];
|
||||||
this.db.scan('notifies', function(notify) {
|
this.db.scan('notifies', function(notify) {
|
||||||
console.log(notify);
|
if(notify && _.has(notify, 'host') && notify.host == host) {
|
||||||
|
results.push(notify.message);
|
||||||
|
}
|
||||||
}, function() {
|
}, function() {
|
||||||
event.reply(nick + ' has sought help ' + result.length + ' times under the host ' + notify.host);
|
event.reply(nick + ' has sought help ' + result.length + ' times under the host ' + notify.host);
|
||||||
_.each(results, function(n) {
|
_.each(results, function(n) {
|
||||||
@ -318,7 +320,7 @@ var commands = function(dbot) {
|
|||||||
event.reply(out);
|
event.reply(out);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}.bind(this));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
commands['~report'].regex = /^report (#[^ ]+ )?([^ ]+) (.*)$/;
|
commands['~report'].regex = /^report (#[^ ]+ )?([^ ]+) (.*)$/;
|
||||||
|
Loading…
Reference in New Issue
Block a user