Better moment dates

This commit is contained in:
Daniel Odendahl Jr
2017-05-21 15:34:42 +00:00
parent 9c10dcd9aa
commit 986adf1926
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -37,9 +37,9 @@ module.exports = class GithubCommand extends Command {
.setDescription(body.description)
.setThumbnail(body.owner.avatar_url)
.addField('Creation Date',
moment(body.created_at).format('MMMM Do YYYY h:mm:ss A'), true)
moment(body.created_at).format('MMMM Do YYYY'), true)
.addField('Last Updated On',
moment(body.created_at).format('MMMM Do YYYY h:mm:ss A'), true)
moment(body.created_at).format('MMMM Do YYYY'), true)
.addField('Stargazers',
body.stargazers_count, true)
.addField('Watchers',
+2 -2
View File
@@ -42,10 +42,10 @@ module.exports = class WattpadCommand extends Command {
.setTitle(body.stories[0].title)
.setDescription(body.stories[0].description.substr(0, 2000))
.setThumbnail(body.stories[0].cover)
.addField('Created On',
moment(body.stories[0].createDate).format('MMMM Do YYYY'), true)
.addField('Author',
body.stories[0].user, true)
.addField('Created On',
moment(body.stories[0].createDate).format('MMMM Do YYYY h:mm:ss A'), true)
.addField('Parts',
body.stories[0].numParts, true)
.addField('Reads',