From 5eb551409e14787876be43c652663e4d3fb95882 Mon Sep 17 00:00:00 2001 From: Han Yang Date: Tue, 17 Dec 2024 15:16:25 +0800 Subject: [PATCH] fix: print commands to start the client and remove unused --non-iteractive in dockerfile --- Dockerfile | 2 +- agent/src/index.ts | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index d97ed212cb..4a4341ebaa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,4 +52,4 @@ COPY --from=builder /app/scripts ./scripts COPY --from=builder /app/characters ./characters # Set the command to run the application -CMD ["pnpm", "start", "--non-interactive"] +CMD ["pnpm", "start"] diff --git a/agent/src/index.ts b/agent/src/index.ts index d4f0448f63..4e24b62c23 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -648,14 +648,15 @@ const startAgents = async () => { } // upload some agent functionality into directClient - directClient.startAgent = async character => { - // wrap it so we don't have to inject directClient later - return startAgent(character, directClient) + directClient.startAgent = async (character) => { + // wrap it so we don't have to inject directClient later + return startAgent(character, directClient); }; directClient.start(serverPort); - elizaLogger.log("Visit the following URL to chat with your agents:"); - elizaLogger.log(`http://localhost:5173`); + elizaLogger.log( + "Run `pnpm start:client` to start the client and visit the outputted URL (http://localhost:5173) to chat with your agents" + ); }; startAgents().catch((error) => {