mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
yes
This commit is contained in:
parent
36372a511c
commit
46d5df86c2
@ -303,12 +303,12 @@ var commands = function(dbot) {
|
||||
var results = [];
|
||||
this.db.scan('notifies', function(notify) {
|
||||
if(notify && _.has(notify, 'host') && (notify.host == host || notify.message.split(' ')[0] == nick)) {
|
||||
results.push(notify.message);
|
||||
results.push(notify);
|
||||
}
|
||||
}, function() {
|
||||
event.reply(nick + ' has sought help ' + results.length + ' times under the host ' + host + ' or nick ' + nick);
|
||||
_.each(results, function(n) {
|
||||
event.reply(n);
|
||||
event.reply('[' + moment(parseInt(n.time)).format('DD/MM/YYYY') + '][' + n.user.split('.')[0] '] ' + n.message);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user