Fix start

This commit is contained in:
2023-06-25 14:45:02 +02:00
parent 9bb5b92ac6
commit 95f1119315

View File

@@ -78,9 +78,8 @@ async function vpnConnect(vpnName) {
},
});
const res = await response.json();
console.log(res);
const ip = res.ip;
consoleLog(`[${host}] VPN connection successfully established to ${vpnName} (IP: ${ip.data}).`, 'info');
consoleLog(`[${host}] VPN connection successfully established to ${vpnName} (IP: ${ip}).`, 'info');
return 0;
}
}
@@ -131,7 +130,7 @@ async function startBot(accountName) {
const containerEnv = fs.readFileSync('/proc/1/environ', 'utf8');
const isLXCContainer = containerEnv.includes('container=lxc') || containerEnv.includes('container=lxc-libvirt');
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 ./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`;
if (isLXCContainer) {
commandPrefix += ' --virtual-display';
}