3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-28 05:32:50 +01:00

i like colours

This commit is contained in:
reality 2016-01-29 18:03:22 +00:00
parent 4afeb8ff38
commit c16f65c5b8

View File

@ -138,25 +138,25 @@ var commands = function(dbot) {
});
if(sTimes.length < 70) {
event.reply('[reports]');
event.reply('[\u00034reports\u000f]');
_.each(sTimes, function(time) {
if(items[time].type == 'report') {
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
}
});
event.reply('[quiets]');
event.reply('[\u00037quiets\u000f]');
_.each(sTimes, function(time) {
if(items[time].type == 'quiet') {
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
}
});
event.reply('[warns]');
event.reply('[\u00035warns\u000f]');
_.each(sTimes, function(time) {
if(items[time].type == 'warn') {
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);
}
});
event.reply('[bans]');
event.reply('[\u00034bans\u000f]');
_.each(sTimes, function(time) {
if(items[time].type == 'ban' || items[time].type == 'unban') {
event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time].message);