This commit is contained in:
parent
5feca79a5e
commit
94f8f62952
1 changed files with 11 additions and 12 deletions
|
@ -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:')) {
|
||||
footer = text.split(/(\[embedFooter:.*?])/);
|
||||
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()
|
||||
.setColor()
|
||||
.setTitle(title)
|
||||
|
|
Loading…
Reference in a new issue