mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2025-04-24 04:53:39 -04:00
if (parsedMessage.extra!==undefined)
This commit is contained in:
parent
6e7cf2bac1
commit
f363f03ca4
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
@ -287,7 +287,9 @@ function main() {
|
|||
const parsedMessage = JSON.parse(data.message);
|
||||
if (parsedMessage.translate==='translation.test.invalid') return;
|
||||
if (parsedMessage.translate==='advMode.setCommand.success') return;
|
||||
if (parsedMessage.extra[0].text==='Command set: ') return;
|
||||
if (parsedMessage.extra!==undefined) {
|
||||
if (parsedMessage.extra[0].text==='Command set: ') return;
|
||||
}
|
||||
|
||||
const cleanMessage = escapeMarkdown(message.toString());
|
||||
discordMsg = /* '_ _ ' + */cleanMessage.replaceAll('@', '@\u200B').replaceAll('http', '[http]');// .replace(/[\r\n]/gm, '\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue