Skip to content

Commit

Permalink
Merge pull request #179 from ai16z/server-port-in-env
Browse files Browse the repository at this point in the history
server port in env
  • Loading branch information
lalalune authored Nov 3, 2024
2 parents e580ac6 + aee39f9 commit 40dea4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ HELIUS_API_KEY=
## Telegram
TELEGRAM_BOT_TOKEN=

TOGETHER_API_KEY=
TOGETHER_API_KEY=
SERVER_PORT=3000
3 changes: 2 additions & 1 deletion core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const characters = loadCharacters(argv.characters);

const directClient = new Client.DirectClient();

directClient.start(3000);
const serverPort = parseInt(process.env.SERVER_PORT || "3000");
directClient.start(serverPort);

async function startAgent(character: Character) {
console.log(`Starting agent for character ${character.name}`);
Expand Down

0 comments on commit 40dea4f

Please sign in to comment.