This commit is contained in:
2023-06-26 09:54:11 +02:00
parent 465835c185
commit e96367ecaa

View File

@@ -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')) {