Skip to content

Commit ea28d14

Browse files
authoredNov 3, 2024
Merge branch 'main' into main
2 parents 8bf4809 + 40dea4f commit ea28d14

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎core/.env.example

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ HELIUS_API_KEY=
4242
## Telegram
4343
TELEGRAM_BOT_TOKEN=
4444

45-
TOGETHER_API_KEY=
45+
TOGETHER_API_KEY=
46+
SERVER_PORT=3000

‎core/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ prettyConsole.closeByNewLine = true;
3434
prettyConsole.useIcons = true;
3535

3636
// Start the direct client
37-
directClient.start(3000);
37+
const serverPort = parseInt(process.env.SERVER_PORT || "3000");
38+
directClient.start(serverPort);
3839

3940
async function startAgent(character: Character) {
4041
prettyConsole.success(`Starting agent for character ${character.name}`);

0 commit comments

Comments
 (0)