diff --git a/modules/sstats/commands.js b/modules/sstats/commands.js index c66e208..2f68d4b 100644 --- a/modules/sstats/commands.js +++ b/modules/sstats/commands.js @@ -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', { diff --git a/modules/sstats/strings.json b/modules/sstats/strings.json index 1fa527b..95c7924 100644 --- a/modules/sstats/strings.json +++ b/modules/sstats/strings.json @@ -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}"