Add score and format

This commit is contained in:
Dragon Fire
2021-04-30 22:03:04 -04:00
parent fae50b9ed4
commit 41f3858e3a
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -19,10 +19,21 @@ const searchGraphQL = stripIndents`
large
medium
}
startDate { year }
format
}
}
}
`;
const formats = {
TV: 'TV',
TV_SHORT: 'TV Short',
MOVIE: 'Movie',
SPECIAL: 'Special',
OVA: 'OVA',
ONA: 'ONA',
MUSIC: 'Music'
};
module.exports = class AnimeScoreCommand extends Command {
constructor(client) {
@@ -52,6 +63,7 @@ module.exports = class AnimeScoreCommand extends Command {
.setAuthor('AniList', 'https://i.imgur.com/iUIRC7v.png', 'https://anilist.co/')
.setImage(anime.coverImage.large || anime.coverImage.medium || null)
.setTitle(anime.title.english || anime.title.romaji)
.setDescription(`_${anime.startDate.year}, ${formats[anime.format]}_`)
.setFooter(anime.id);
await msg.reply('**You have 15 seconds, what score do you think this anime has?**', { embed });
const filter = res => {
+1
View File
@@ -35,6 +35,7 @@ const resultGraphQL = stripIndents`
description(asHtml: false)
season
type
format
siteUrl
status
episodes