Longer substr

This commit is contained in:
Daniel Odendahl Jr
2017-08-06 14:56:01 +00:00
parent ec25e6d3d3
commit f7cd98a7eb
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class AnimeCommand extends Command {
.get(`https://${animelistLogin}@myanimelist.net/api/anime/search.xml`)
.query({ q: query });
const { anime } = await xml.parseStringAsync(text);
const synopsis = cleanXML(anime.entry[0].synopsis[0].substr(0, 2000));
const synopsis = cleanXML(anime.entry[0].synopsis[0].substr(0, 2048));
const embed = new MessageEmbed()
.setColor(0x2D54A2)
.setAuthor('My Anime List', 'https://i.imgur.com/R4bmNFz.png')