3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

sustatus thing

This commit is contained in:
reality 2016-01-29 17:56:38 +00:00
parent e52699b211
commit 431266136c

View File

@ -141,25 +141,24 @@ var commands = function(dbot) {
event.reply('[reports]'); event.reply('[reports]');
_.each(sTimes, function(time) { _.each(sTimes, function(time) {
if(items[time].type == 'report') { if(items[time].type == 'report') {
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]);
} }
}); });
event.reply('[quiets]'); event.reply('[quiets]');
_.each(sTimes, function(time) { _.each(sTimes, function(time) {
if(items[time].type == 'quiet') { if(items[time].type == 'quiet') {
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
} }
}); });
event.reply('[warns]'); event.reply('[warns]');
_.each(sTimes, function(time) { _.each(sTimes, function(time) {
if(items[time].type == 'warn') { if(items[time].type == 'warn') {
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
} }
}); });
event.reply('[bans]'); event.reply('[bans]');
_.each(sTimes, function(time) { _.each(sTimes, function(time) {
if(items[time].type == 'ban' || items[time].type == 'unban') { if(items[time].type == 'ban' || items[time].type == 'unban') {
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
} }
}); });
} else { } else {