diff --git a/commands/search/anime.js b/commands/search/anime.js index 6af9562f..4f5c25ea 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -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, 2047)); + 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') diff --git a/commands/search/bulbapedia.js b/commands/search/bulbapedia.js index 8cc6af2d..13a8538a 100644 --- a/commands/search/bulbapedia.js +++ b/commands/search/bulbapedia.js @@ -40,7 +40,7 @@ module.exports = class BulbapediaCommand extends Command { .setColor(0x3E7614) .setTitle(body.query.pages[0].title) .setAuthor('Bulbapedia', 'https://i.imgur.com/09eYo5T.png') - .setDescription(body.query.pages[0].extract.substr(0, 2047).replace(/[\n]/g, '\n\n')); + .setDescription(body.query.pages[0].extract.replace(/[\n]/g, '\n\n').substr(0, 2048)); return msg.embed(embed); } }; diff --git a/commands/search/manga.js b/commands/search/manga.js index 99c74193..c42a2c23 100644 --- a/commands/search/manga.js +++ b/commands/search/manga.js @@ -31,7 +31,7 @@ module.exports = class MangaCommand extends Command { .get(`https://${animelistLogin}@myanimelist.net/api/manga/search.xml`) .query({ q: query }); const { manga } = await xml.parseStringAsync(text); - const synopsis = cleanXML(manga.entry[0].synopsis[0].substr(0, 2047)); + const synopsis = cleanXML(manga.entry[0].synopsis[0].substr(0, 2048)); const embed = new MessageEmbed() .setColor(0x2D54A2) .setAuthor('My Anime List', 'https://i.imgur.com/R4bmNFz.png') diff --git a/commands/search/urban.js b/commands/search/urban.js index 9e840539..6670f8e1 100644 --- a/commands/search/urban.js +++ b/commands/search/urban.js @@ -31,7 +31,7 @@ module.exports = class UrbanCommand extends Command { .setAuthor('Urban Dictionary', 'https://i.imgur.com/fzFuuL7.png') .setURL(body.list[0].permalink) .setTitle(body.list[0].word) - .setDescription(body.list[0].definition.substr(0, 2047)) + .setDescription(body.list[0].definition.substr(0, 2048)) .addField('❯ Example', body.list[0].example.substr(0, 1024) || 'None'); return msg.embed(embed); diff --git a/commands/search/vocaloid.js b/commands/search/vocaloid.js index 5a0ecf9a..da1bb5aa 100644 --- a/commands/search/vocaloid.js +++ b/commands/search/vocaloid.js @@ -40,7 +40,7 @@ module.exports = class VocaloidCommand extends Command { .setAuthor('VocaDB', 'https://i.imgur.com/9Tx9UIc.jpg') .setTitle(body.items[0].name) .setURL(`http://vocadb.net/S/${body.items[0].id}`) - .setDescription(body.items[0].lyrics[0] ? body.items[0].lyrics[0].value.substr(0, 2047) : 'No lyrics available.') + .setDescription(body.items[0].lyrics[0] ? body.items[0].lyrics[0].value.substr(0, 2048) : 'No lyrics available.') .setThumbnail(body.items[0].thumbUrl) .addField('❯ Artist', body.items[0].artistString) diff --git a/commands/search/wattpad.js b/commands/search/wattpad.js index 7b1e69e2..769ed03b 100644 --- a/commands/search/wattpad.js +++ b/commands/search/wattpad.js @@ -37,7 +37,7 @@ module.exports = class WattpadCommand extends Command { .setAuthor('Wattpad', 'https://i.imgur.com/Rw9vRQB.png') .setURL(body.stories[0].url) .setTitle(body.stories[0].title) - .setDescription(body.stories[0].description.substr(0, 2047)) + .setDescription(body.stories[0].description.substr(0, 2048)) .setThumbnail(body.stories[0].cover) .addField('❯ Created On', moment(body.stories[0].createDate).format('MMMM Do YYYY'), true) diff --git a/commands/search/wikia.js b/commands/search/wikia.js index 37c9a0b4..23224634 100644 --- a/commands/search/wikia.js +++ b/commands/search/wikia.js @@ -45,7 +45,7 @@ module.exports = class WikiaCommand extends Command { .setTitle(body.sections[0].title) .setURL(search.body.items[0].url) .setAuthor('Wikia', 'https://i.imgur.com/WzXWJka.png') - .setDescription(body.sections[0].content.map(i => i.text).join('\n\n').substr(0, 2047)) + .setDescription(body.sections[0].content.map(i => i.text).join('\n\n').substr(0, 2048)) .setThumbnail(body.sections[0].images[0] ? body.sections[0].images[0].src : null); return msg.embed(embed); } catch (err) { diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index 4e65621d..d0f61e60 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -39,7 +39,7 @@ module.exports = class WikipediaCommand extends Command { .setColor(0xE7E7E7) .setTitle(body.query.pages[0].title) .setAuthor('Wikipedia', 'https://i.imgur.com/a4eeEhh.png') - .setDescription(body.query.pages[0].extract.substr(0, 2047).replace(/[\n]/g, '\n\n')); + .setDescription(body.query.pages[0].extract.replace(/[\n]/g, '\n\n').substr(0, 2048)); return msg.embed(embed); } };