From b8921c3520068cb3a92af112e70b89bee89dbfde Mon Sep 17 00:00:00 2001 From: Lawtro37 <98205608+Lawtro37@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:41:43 +1000 Subject: [PATCH] cleaned up message sent to AI on death reduced message length by removing confusing and unnecessary info such as what it had in its inventory. Added more direct and less confusable instruction to use the !goToDeath action. --- src/agent/agent.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/agent/agent.js b/src/agent/agent.js index fbe9f47..cf79733 100644 --- a/src/agent/agent.js +++ b/src/agent/agent.js @@ -266,15 +266,8 @@ export class Agent { if (death_pos) { death_pos_text = `x: ${death_pos.x.toFixed(2)}, y: ${death_pos.y.toFixed(2)}, z: ${death_pos.x.toFixed(2)}`; } - let inventory = this.bot.inventory.slots; - let death_items = ""; - for (let i=0; i {