diff --git a/index.js b/index.js index 5ca7754..6438827 100644 --- a/index.js +++ b/index.js @@ -150,7 +150,10 @@ async function startBot(accountName) { } return new Promise((resolve, reject) => { - const childProcess = spawn('bash', ['-c', `${commandPrefix} ${commandSuffix}`], { stdio: 'inherit' }); + // const childProcess = spawn('bash', ['-c', `${commandPrefix} ${commandSuffix}`], { stdio: 'inherit' }); + const childProcess = spawn('bash', ['-c', `${commandPrefix} ${commandSuffix}`], { + stdio: ['pipe', 'pipe', 'pipe'], + }); console.log(childProcess);