This commit is contained in:
Supositware 2019-02-10 02:09:42 +01:00
parent 5feca79a5e
commit 94f8f62952

View file

@ -97,18 +97,6 @@ class messageListener extends Listener {
} }
} }
if (text.includes('[embedDesc:')) {
desc = text.split(/(\[embedDesc:.*?])/);
console.log(desc);
for (let i = 0, l = desc.length; i < l; i++) {
if (desc[i].includes('[embedDesc:')) {
desc = desc[i].replace('[embedDesc:', '').slice(0, -1);
console.log(desc);
i = desc.length;
}
}
}
if (text.includes('[embedFooter:')) { if (text.includes('[embedFooter:')) {
footer = text.split(/(\[embedFooter:.*?])/); footer = text.split(/(\[embedFooter:.*?])/);
for (let i = 0, l = footer.length; i < l; i++) { for (let i = 0, l = footer.length; i < l; i++) {
@ -120,6 +108,17 @@ class messageListener extends Listener {
} }
} }
if (text.includes('[embedDesc:')) {
desc = text.split(/(\[embedDesc:.*?])/);
console.log(desc);
for (let i = 0, l = desc.length; i < l; i++) {
if (desc[i].includes('[embedDesc:')) {
desc = desc[i].replace('[embedDesc:', '').slice(0, -1);
i = desc.length;
}
}
}
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setColor() .setColor()
.setTitle(title) .setTitle(title)