3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 12:12:35 +01:00

Fix ~lastfm registered date display

This commit is contained in:
Scritches 2018-04-14 14:01:36 -04:00
parent 86d0a6f31b
commit 11a7f1d20e

View File

@ -155,7 +155,7 @@ var lastfm = function(dbot) {
event.reply(dbot.t('lfm_profile', { event.reply(dbot.t('lfm_profile', {
'user': user.currentNick, 'user': user.currentNick,
'plays': profile.playcount.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"), 'plays': profile.playcount.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"),
'date': moment(profile.registered['#text']).format('DD/MM/YYYY'), 'date': moment(profile.registered['#text'] * 1000).format('DD/MM/YYYY'),
'link': profile.url 'link': profile.url
})); }));
} else { } else {