forked from ChrisChrome/weather-bot
Possible fix to #20
This commit is contained in:
parent
5168c5c582
commit
b76a77807b
2
index.js
2
index.js
|
@ -1310,7 +1310,7 @@ discord.on("interactionCreate", async (interaction) => {
|
|||
}
|
||||
// Retruns raw text, paginate it into multiple embeds if needed
|
||||
res.text().then(async (text) => {
|
||||
const pages = text.match(/[\s\S]{1,2000}(?=\n|$)/g);
|
||||
const pages = text.match(/[\s\S]{1,1900}(?=\n|$)/g);
|
||||
// const embeds = pages.map((page, ind) => ({
|
||||
// title: `Product Text for ${product_id} Pg ${ind + 1}/${pages.length}`,
|
||||
// description: `\`\`\`${page}\`\`\``,
|
||||
|
|
Loading…
Reference in a new issue