Test
This commit is contained in:
2
index.js
2
index.js
@@ -152,6 +152,8 @@ async function startBot(accountName) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const childProcess = spawn('bash', ['-c', `${commandPrefix} ${commandSuffix}`], { stdio: 'inherit' });
|
||||
|
||||
console.log(childProcess);
|
||||
|
||||
childProcess.stdout.on('data', (data) => {
|
||||
console.log(`[${accountName}] ${data.toString()}`);
|
||||
if (data.includes('Press enter') || data.includes('Press any key')) {
|
||||
|
||||
Reference in New Issue
Block a user