From c43c01a3a2b47af078287681cdae04937e6e91b1 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 26 Jun 2023 10:02:34 +0200 Subject: [PATCH] Added stdio --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);