From fe21c4f7f1f22c077428b78bc5591e009ba89449 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 26 Jun 2023 10:29:15 +0200 Subject: [PATCH] changed to unbeffered output --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 749d91e..458c9e7 100644 --- a/index.js +++ b/index.js @@ -137,7 +137,7 @@ async function startBot(accountName) { commandSuffix += ' --browser ' + process.env.BOT_BROWSER; } - let commandPrefix = `python ./Microsoft-Rewards-bot/ms_rewards_farmer.py --accounts-file ../accounts/${accountName}.json --dont-check-for-updates --shuffle --session --superfast --on-finish exit --no-webdriver-manager --skip-unusual`; + let commandPrefix = `python -u ./Microsoft-Rewards-bot/ms_rewards_farmer.py --accounts-file ../accounts/${accountName}.json --dont-check-for-updates --shuffle --session --superfast --on-finish exit --no-webdriver-manager --skip-unusual`; consoleLog(`[${host}] Script started for ${accountName}`); if (isRootUser()) { @@ -152,7 +152,7 @@ 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: ['pipe', 'inherit', 'pipe'], + stdio: ['pipe', 'pipe', 'pipe'], }); childProcess.stdout.on('data', (data) => {