3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-30 16:09:27 +01:00
This commit is contained in:
reality 2015-04-25 10:26:35 +00:00
parent 15de4c4f5d
commit 548d4977f2

View File

@ -125,11 +125,11 @@ var commands = function(dbot) {
if(quiet != 0 || warn != 0 || report != 0) { if(quiet != 0 || warn != 0 || report != 0) {
event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.'); event.reply(user.primaryNick + ' has been warned ' + warn + ' times, quieted ' + quiet + ' times, and reported ' + report + ' times.');
_.each(_.keys(items).sort(function(a, b) { async.eachSeries(_.keys(items).sort(function(a, b) {
return moment(a).unix() - moment(b).unix(); return moment(a).unix() - moment(b).unix();
}), function(time) { }), function(time, next) {
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]);
console.log('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); setTimeout(next, 500);
}); });
if(latest_ban.time != 0) { if(latest_ban.time != 0) {