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
@@ -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, 2000).replace(/[\n]/g, '\n\n'));
.setDescription(body.query.pages[0].extract.substr(0, 2048).replace(/[\n]/g, '\n\n'));
return msg.embed(embed);
}
};