mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
Better moment dates
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user