mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
stderr
This commit is contained in:
parent
a2ad69634b
commit
2c414264c7
2 changed files with 6 additions and 1 deletions
2
index.js
2
index.js
|
@ -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
5
run.js
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue