mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
fix empty input
This commit is contained in:
parent
3985030394
commit
58fe6ead52
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ module.exports = {
|
||||||
if(msg.content && msg.content.length) content = msg.content
|
if(msg.content && msg.content.length) content = msg.content
|
||||||
if(msg.embeds?.length) for(const e of msg.embeds) if(e[1].description?.length) { content += '\n' + e[1].description; break; }
|
if(msg.embeds?.length) for(const e of msg.embeds) if(e[1].description?.length) { content += '\n' + e[1].description; break; }
|
||||||
} else {
|
} else {
|
||||||
if(!content.includes("$")) content = `$${content}$`
|
if(content.length && !content.includes("$")) content = `$${content}$`
|
||||||
}
|
}
|
||||||
|
|
||||||
let texBlocks = content.match(TEX_REGEX);
|
let texBlocks = content.match(TEX_REGEX);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue