From 95b56f53012d3311eca793a87c4bafe83c5624fc Mon Sep 17 00:00:00 2001 From: Sweaterdog Date: Thu, 27 Feb 2025 21:09:24 -0800 Subject: [PATCH] Update settings.js --- settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/settings.js b/settings.js index 6a62eb0..bf83b04 100644 --- a/settings.js +++ b/settings.js @@ -2,17 +2,17 @@ export default { "minecraft_version": "1.20.4", // supports up to 1.21.1 "host": "127.0.0.1", // or "localhost", "your.ip.address.here" - "port": 55916, + "port": process.env.MINECRAFT_PORT || 55916, "auth": "offline", // or "microsoft" // the mindserver manages all agents and hosts the UI "host_mindserver": true, // if true, the mindserver will be hosted on this machine. otherwise, specify a public IP address "mindserver_host": "localhost", - "mindserver_port": 8080, + "mindserver_port": process.env.MINDSERVER_PORT || 8080, // the base profile is shared by all bots for default prompts/examples/modes "base_profile": "./profiles/defaults/survival.json", // also see creative.json, god_mode.json - "profiles": [ + "profiles": ((process.env.PROFILES) && JSON.parse(process.env.PROFILES)) || [ "./andy.json", // "./profiles/gpt.json", // "./profiles/claude.json",