mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 22:14:34 +02:00
Fix
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = class MyAnimeListAnimeCommand extends Command {
|
|||||||
.get(`https://${MAL_LOGIN}@myanimelist.net/api/anime/search.xml`)
|
.get(`https://${MAL_LOGIN}@myanimelist.net/api/anime/search.xml`)
|
||||||
.query({ q: query });
|
.query({ q: query });
|
||||||
const body = xml2js(text, { compact: true }).anime;
|
const body = xml2js(text, { compact: true }).anime;
|
||||||
const data = body.length ? body.entry[0] : body.entry;
|
const data = body.entry.length ? body.entry[0] : body.entry;
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0x2D54A2)
|
.setColor(0x2D54A2)
|
||||||
.setAuthor('My Anime List', 'https://i.imgur.com/5rivpMM.png')
|
.setAuthor('My Anime List', 'https://i.imgur.com/5rivpMM.png')
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ module.exports = class MyAnimeListMangaCommand extends Command {
|
|||||||
.get(`https://${MAL_LOGIN}@myanimelist.net/api/manga/search.xml`)
|
.get(`https://${MAL_LOGIN}@myanimelist.net/api/manga/search.xml`)
|
||||||
.query({ q: query });
|
.query({ q: query });
|
||||||
const body = xml2js(text, { compact: true }).manga;
|
const body = xml2js(text, { compact: true }).manga;
|
||||||
const data = body.length ? body.entry[0] : body.entry;
|
const data = body.entry.length ? body.entry[0] : body.entry;
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0x2D54A2)
|
.setColor(0x2D54A2)
|
||||||
.setAuthor('My Anime List', 'https://i.imgur.com/5rivpMM.png')
|
.setAuthor('My Anime List', 'https://i.imgur.com/5rivpMM.png')
|
||||||
|
|||||||
Reference in New Issue
Block a user