fix empty input

This commit is contained in:
derpystuff 2023-12-07 22:59:21 +01:00
parent 3985030394
commit 58fe6ead52

View file

@ -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);