mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
concerning
This commit is contained in:
parent
96dc972637
commit
4aa2c05989
@ -302,10 +302,7 @@ var commands = function(dbot) {
|
|||||||
if(host) {
|
if(host) {
|
||||||
var results = [];
|
var results = [];
|
||||||
this.db.scan('notifies', function(notify) {
|
this.db.scan('notifies', function(notify) {
|
||||||
event.reply(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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user