Added stdio

This commit is contained in:
2023-06-26 10:02:34 +02:00
parent e96367ecaa
commit c43c01a3a2

View File

@@ -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);