This commit is contained in:
ChomeNS 2022-10-25 15:36:28 +07:00
parent a2ad69634b
commit 2c414264c7
2 changed files with 6 additions and 1 deletions

View file

@ -206,7 +206,7 @@ function main() {
if (!messageloggingEnabled) return;
if (consoleQueue.length > 50) consoleQueue = [];
if (consoleQueue[0] || consoleQueue[0]==='') {
console.log(bot.options.host + ': ' + consoleQueue[0].substring(0, 10000)/* message.toAnsi() + '\u001b[0m'*/);
console.log('\u001b[48:5:208m' + bot.options.host + '\u001b[0m' + ': ' + consoleQueue[0].substring(0, 10000)/* message.toAnsi() + '\u001b[0m'*/);
consoleQueue.shift();
}
}, 100);

5
run.js
View file

@ -55,6 +55,11 @@ function start(host, port) {
require('process').stdout.write(`${chunk}`);
rl._refreshLine();
});
bots[server].stderr.on('data', function(chunk) {
rl.output.write('\x1b[2K\r');
require('process').stderr.write(`${chunk}`);
rl._refreshLine();
});
rl.on('line', (line) => {
if (line.startsWith('/send ')) {
try {