Added stdio
This commit is contained in:
5
index.js
5
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user