Fix start
This commit is contained in:
5
index.js
5
index.js
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user