mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
things
This commit is contained in:
parent
8be0261295
commit
da8c297973
@ -183,27 +183,35 @@ var commands = function(dbot) {
|
|||||||
|
|
||||||
if(sTimes.length < 70) {
|
if(sTimes.length < 70) {
|
||||||
event.reply('[\u00036reports\u000f]');
|
event.reply('[\u00036reports\u000f]');
|
||||||
_.each(sTimes, function(time, n) {
|
var n = 0;
|
||||||
|
_.each(sTimes, function(time) {
|
||||||
if(items[time].type == 'report') {
|
if(items[time].type == 'report') {
|
||||||
event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
|
event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
|
||||||
|
n++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
event.reply('[\u00037quiets\u000f]');
|
event.reply('[\u00037quiets\u000f]');
|
||||||
_.each(sTimes, function(time, n) {
|
var n = 0;
|
||||||
|
_.each(sTimes, function(time) {
|
||||||
if(items[time].type == 'quiet') {
|
if(items[time].type == 'quiet') {
|
||||||
event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
|
event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
|
||||||
|
n++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
event.reply('[\u00035warns\u000f]');
|
event.reply('[\u00035warns\u000f]');
|
||||||
_.each(sTimes, function(time, n) {
|
var n = 0;
|
||||||
|
_.each(sTimes, function(time) {
|
||||||
if(items[time].type == 'warn') {
|
if(items[time].type == 'warn') {
|
||||||
event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
|
event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
|
||||||
|
n++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
event.reply('[\u00034bans\u000f]');
|
event.reply('[\u00034bans\u000f]');
|
||||||
_.each(sTimes, function(time, n) {
|
var n = 0;
|
||||||
|
_.each(sTimes, function(time) {
|
||||||
if(items[time].type == 'ban' || items[time].type == 'unban') {
|
if(items[time].type == 'ban' || items[time].type == 'unban') {
|
||||||
event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
|
event.reply('[' + n + '][' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
|
||||||
|
n++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user