mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Add score and format
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -35,6 +35,7 @@ const resultGraphQL = stripIndents`
|
||||
description(asHtml: false)
|
||||
season
|
||||
type
|
||||
format
|
||||
siteUrl
|
||||
status
|
||||
episodes
|
||||
|
||||
Reference in New Issue
Block a user