Skip to content

Commit

Permalink
non-interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rarepepi committed Dec 2, 2024
1 parent 3ac8116 commit 6735003
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
CMD ["pnpm", "start", "non-interactive"]
4 changes: 3 additions & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,9 @@ const startAgents = async () => {
}

elizaLogger.log("Chat started. Type 'exit' to quit.");
chat();
if (!args["non-interactive"]) {
chat();
}
};

startAgents().catch((error) => {
Expand Down

0 comments on commit 6735003

Please sign in to comment.