mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-27 02:15:26 +02:00
Update main.js
Fixed unnecessary spaces and comments
This commit is contained in:
parent
360b937237
commit
09f36dd94b
1 changed files with 1 additions and 9 deletions
10
main.js
10
main.js
|
@ -39,24 +39,16 @@ async function main() {
|
|||
const args = parseArguments();
|
||||
const profiles = getProfiles(args);
|
||||
console.log(profiles);
|
||||
|
||||
const { load_memory, init_message } = settings;
|
||||
|
||||
// Start each agent in turn
|
||||
for (let i = 0; i < profiles.length; i++) {
|
||||
const agent_process = new AgentProcess();
|
||||
const profile = readFileSync(profiles[i], 'utf8');
|
||||
const agent_json = JSON.parse(profile);
|
||||
|
||||
mainProxy.registerAgent(agent_json.name, agent_process);
|
||||
|
||||
agent_process.start(profiles[i], load_memory, init_message, i, args.task_path, args.task_id);
|
||||
|
||||
// A small delay so we don't start them all at once
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
}
|
||||
|
||||
// NEW: Finally, kick off TTS (will only run if tts_transcription is true in settings)
|
||||
initTTS();
|
||||
}
|
||||
|
||||
|
@ -65,4 +57,4 @@ try {
|
|||
} catch (error) {
|
||||
console.error('An error occurred:', error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue