mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
More fixes
This commit is contained in:
@@ -53,7 +53,7 @@ module.exports = class EshopCommand extends Command {
|
||||
? data.game_category_ref.length ? data.game_category_ref[0].title : data.game_category_ref.title
|
||||
: '???', true)
|
||||
.addField('❯ Release Date',
|
||||
data.release_date ? moment.utc(data.release_date).format('MMM Do, YYYY') : '???', true)
|
||||
data.release_date ? moment.utc(data.release_date).format('MM/DD/YYYY') : '???', true)
|
||||
.addField('❯ Player Count', data.number_of_players || '???', true)
|
||||
.addField('❯ DLC?', data.dlc === 'true' ? 'Yes' : 'No', true)
|
||||
.addField('❯ Demo?', data.demo === 'true' ? 'Yes' : 'No', true)
|
||||
|
||||
@@ -52,7 +52,7 @@ module.exports = class ItunesCommand extends Command {
|
||||
.setTitle(data.trackName)
|
||||
.addField('❯ Artist', data.artistName, true)
|
||||
.addField('❯ Album', data.collectionName, true)
|
||||
.addField('❯ Release Date', moment.utc(data.releaseDate).format('MMM Do, YYYY'), true)
|
||||
.addField('❯ Release Date', moment.utc(data.releaseDate).format('MM/DD/YYYY'), true)
|
||||
.addField('❯ Genre', data.primaryGenreName, true);
|
||||
return msg.embed(embed);
|
||||
} catch (err) {
|
||||
|
||||
@@ -40,8 +40,8 @@ module.exports = class KitsuAnimeCommand extends Command {
|
||||
.setDescription(shorten(data.synopsis))
|
||||
.addField('❯ Type', `${data.showType} - ${data.status}`, true)
|
||||
.addField('❯ Episodes', data.episodeCount || '???', true)
|
||||
.addField('❯ Start Date', data.startDate ? moment.utc(data.startDate).format('MMM Do, YYYY') : '???', true)
|
||||
.addField('❯ End Date', data.endDate ? moment.utc(data.endDate).format('MMM Do, YYYY') : '???', true);
|
||||
.addField('❯ Start Date', data.startDate ? moment.utc(data.startDate).format('MM/DD/YYYY') : '???', true)
|
||||
.addField('❯ End Date', data.endDate ? moment.utc(data.endDate).format('MM/DD/YYYY') : '???', true);
|
||||
return msg.embed(embed);
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
@@ -40,8 +40,8 @@ module.exports = class KitsuMangaCommand extends Command {
|
||||
.setDescription(shorten(data.synopsis))
|
||||
.addField('❯ Type', `${data.subtype} - ${data.status}`, true)
|
||||
.addField('❯ Volumes / Chapters', `${data.volumeCount || '???'} / ${data.chapterCount || '???'}`, true)
|
||||
.addField('❯ Start Date', data.startDate ? moment.utc(data.startDate).format('MMM Do, YYYY') : '???', true)
|
||||
.addField('❯ End Date', data.endDate ? moment.utc(data.endDate).format('MMM Do, YYYY') : '???', true);
|
||||
.addField('❯ Start Date', data.startDate ? moment.utc(data.startDate).format('MM/DD/YYYY') : '???', true)
|
||||
.addField('❯ End Date', data.endDate ? moment.utc(data.endDate).format('MM/DD/YYYY') : '???', true);
|
||||
return msg.embed(embed);
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
@@ -45,7 +45,7 @@ module.exports = class VocaDBCommand extends Command {
|
||||
.setDescription(data.lyrics.length ? shorten(data.lyrics[0].value) : 'No lyrics available.')
|
||||
.setThumbnail(data.thumbUrl)
|
||||
.addField('❯ Artist', data.artistString)
|
||||
.addField('❯ Publish Date', moment.utc(data.publishDate).format('MMM Do, YYYY'), true);
|
||||
.addField('❯ Publish Date', moment.utc(data.publishDate).format('MM/DD/YYYY'), true);
|
||||
return msg.embed(embed);
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
Reference in New Issue
Block a user