date info for sstats

This commit is contained in:
reality 2013-10-22 16:45:52 +00:00
parent fdfb94371e
commit d044232cd0
2 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,8 @@ var commands = function(dbot) {
'user': user.primaryNick,
'words': uStats.words,
'curses': uStats.curses,
'capitals': uStats.capitals
'capitals': uStats.capitals,
'date': new Date(uStats.creation).format('dd/mm/YYYY')
});
if(event.rChannel && _.has(uStats.channels, event.rChannel.id)) {
ucStats = uStats.channels[event.rChannel.id];
@ -49,7 +50,8 @@ var commands = function(dbot) {
if(uStats) {
var output = dbot.t('sstats_tlines', {
'user': user.primaryNick,
'lines': uStats.lines
'lines': uStats.lines,
'date': new Date(uStats.creation).format('dd/mm/YYYY')
});
if(event.rChannel && _.has(uStats.channels, event.rChannel.id)) {
output += dbot.t('sstats_uclines', {

View File

@ -3,7 +3,7 @@
"en": "Unknown user."
},
"sstats_tlines": {
"en": "{user} has posted {lines} lines"
"en": "{user} has posted {lines} lines since {date}"
},
"sstats_uclines": {
"en": " ({lines} in {channel})"
@ -15,7 +15,7 @@
"en": "{lines} lines posted in {channel}."
},
"sstats_uwords": {
"en": "{user} has used {words} words ({curses} curses, {capitals} capitalised words)"
"en": "{user} has used {words} words ({curses} curses, {capitals} capitalised words) since {date}"
},
"sstats_ucwords": {
"en": " - {words} words, {curses} curses, {capitals} capitalised words in {channel}"