From cc4a9b87e93cd104734e2e528799863c9f6c8b93 Mon Sep 17 00:00:00 2001 From: Ayush Maniar Date: Sat, 8 Mar 2025 16:59:02 -0800 Subject: [PATCH] Removed comments from agent.js and removed blueprint_generation.js --- src/agent/agent.js | 13 ------------- src/utils/blueprint_generation.js | 25 ------------------------- 2 files changed, 38 deletions(-) delete mode 100644 src/utils/blueprint_generation.js diff --git a/src/agent/agent.js b/src/agent/agent.js index 74023cb..684ec87 100644 --- a/src/agent/agent.js +++ b/src/agent/agent.js @@ -240,13 +240,6 @@ export class Agent { this.routeResponse(source, execute_res); return true; } - } else { - console.log('Self-prompting:', message); - // if self_prompt contains something that indicates the goal is complete, stop self-prompting - if (message.includes('goal complete')) { - this.self_prompter.stop(); - process.exit(0); - } } if (from_other_bot) @@ -378,12 +371,6 @@ export class Agent { startEvents() { // Custom events - // this.bot.on('spawn', () => { - - // //check that inventory has been set - // }); - - this.bot.on('time', () => { if (this.bot.time.timeOfDay == 0) this.bot.emit('sunrise'); diff --git a/src/utils/blueprint_generation.js b/src/utils/blueprint_generation.js deleted file mode 100644 index 96f6e29..0000000 --- a/src/utils/blueprint_generation.js +++ /dev/null @@ -1,25 +0,0 @@ - -export class BlueprintGenerator { - constructor(num_levels, - num_rooms, - room_height, - materials) { - this.blueprint = { - "name": "Blueprint", - "nodes": [], - "connections": [] - }; - } - - addNode(node) { - this.blueprint.nodes.push(node); - } - - addConnection(connection) { - this.blueprint.connections.push(connection); - } - - getBlueprint() { - return this.blueprint; - } -} \ No newline at end of file