This commit is contained in:
ChomeNS 2022-09-13 20:06:53 +07:00
parent 329aebf40b
commit 119a0daa6a

View file

@ -306,7 +306,7 @@ function main() {
const cleanMessage = escapeMarkdown(message.toString()); const cleanMessage = escapeMarkdown(message.toString());
discordMsg = /* '_ _ ' + */cleanMessage.replaceAll('@', '@\u200B').replaceAll('http', '[http]');// .replace(/[\r\n]/gm, '\n') discordMsg = /* '_ _ ' + */cleanMessage.replaceAll('@', '@\u200B').replaceAll('http', '[http]');// .replace(/[\r\n]/gm, '\n')
consoleQueue += '\n' + message.toAnsi(); consoleQueue += message.toAnsi();
// fs.appendFileSync('./logs.txt', `${bot.options.host}: ${message.toMotd()}\r\n`); // fs.appendFileSync('./logs.txt', `${bot.options.host}: ${message.toMotd()}\r\n`);
// if (discordMsg)return channel.send(`${discordMsg.substring(0, 2000)}`) // if (discordMsg)return channel.send(`${discordMsg.substring(0, 2000)}`)